Onyx

أونيكس

Color codes

HEX
RGB
HSL
HSV
CMYK (approximate)
CIELAB
CSS
Relative luminance0.0388

Shades of Onyx

All shades

Lighter

Darker

Tints mixed with white

Tones mixed with gray

Color harmonies

Complementary

Opposite on the wheel (180°): maximum contrast for accents.

Export
Analogous

Neighbors 30° apart: calm and natural.

Export
Triadic

Three hues 120° apart: vibrant yet balanced.

Export
Split-complementary

The base plus the two neighbors of its complement: contrast with less tension.

Export
Tetradic

Four hues 90° apart: rich, best with one dominant color.

Export
Monochromatic

One hue in several lightness levels: elegant and consistent.

Export

Contrast and readability

White text11.82:1
✓ AA✓ AAA✓ AA Large
Black text1.78:1
✗ AA✗ AAA✗ AA Large
On white11.82:1
✓ AA✓ AAA✓ AA Large
On black1.60:1
✗ AA✗ AAA✗ AA Large

Text colors that pass AA

Check in the contrast checker

In a design

Plan your next project

A short paragraph shows how body text sits next to the color.

Get started Learn more
New

Cards and badges use a soft tint of the color. Read more

Plan your next project

A short paragraph shows how body text sits next to the color.

Get started
New

Cards and badges use a soft tint of the color.

Onyx

Full-color background with readable text.

Get started

About Onyx

Onyx (#353839) is a dark, nearly neutral color from the Gray family with a neutral character. It is made of 53 red, 56 green and 57 blue (hsl(195, 4%, 22%)). Its contrast ratio is 11.82:1 against white and 1.78:1 against black, so white text reads best on it.

Suggested uses

  • text and headings
  • dark mode surfaces and elegant accents
  • balancing stronger accent colors

Reading the codes

In HEX, #353839 stores red, green and blue as pairs of base-16 digits: 53, 56 and 57 out of 255. In HSL the same color has a hue of 195°, 4% saturation and 22% lightness, which makes lighter or darker variants easy to create by changing only the lightness.

Similar colors

Palettes with this color

Tools for this color

Frequently asked questions

What is the HEX code of Onyx?
The HEX code of Onyx is #353839. In RGB it is rgb(53, 56, 57) and in HSL hsl(195, 4%, 22%).
Which text color works on Onyx?
White text has a contrast ratio of 11.82:1 on Onyx and black text 1.78:1, so white text is more readable. WCAG AA needs at least 4.5:1 for normal text.
What is the complementary color of Onyx?
Rotating the hue of Onyx by 180° gives #393635, its complementary color on the RGB color wheel.
What is Onyx in CMYK?
An approximate CMYK value for Onyx is cmyk(7%, 2%, 0%, 78%). For printing, ask your printer for an ICC-profiled conversion.