#160542#160542

#160542 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.104 H 285.5°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#160542
RGBrgb(22, 5, 66)
HSLhsl(257, 86%, 14%)
HSVhsv(257, 92%, 26%)
CMYKcmyk(66.7%, 92.4%, 0%, 74.1%)
CIE-LABlab(6.07, 26.48, -34.55)
CIE-LCHlch(6.07, 43.54, 307.47°)
OKLaboklab(20.13% 0.0278 -0.1005)
OKLCHoklch(20.13% 0.104 285.5)
XYZxyz(1.3682, 0.6724, 5.2109)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160542 #314205
analogous
#051342 #160542 #350542
triadic
#160542 #421605 #054216
tetradic
#160542 #420513 #314205 #054235
square
#160542 #420513 #314205 #054235
split-complementary
#160542 #423505 #134205
monochromatic
#09021C #09021C #160542 #29097B #3C0EB4

Accessibility & contrast

On white

18.51
#160542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#160542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #160542
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160542#FFFFFF#000000##FFFFFF
##1605421.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#001241
Tritanopia (blue-blind)
#011724
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #160542;
/* rgb */ color: rgb(22, 5, 66);
/* oklch */ color: oklch(20.1% 0.104 285.5);
Tailwind
colors: {
  custom: {
    50: '#5a4877',
    500: '#160542',
    950: '#000000',
  },
}
SCSS
$custom: #160542;
$custom-light: #5a4877;
$custom-dark: #000000;
JSON
{
  "hex": "#160542",
  "rgb": {
    "r": 22,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 256.721,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20127,
    "c": 0.10423,
    "h": 285.5
  },
  "luminance": 0.00672
}

Semantic roles & 50–950 ramp

primary
#160542
secondary
#678220
accent
#FC2CC2
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040009
muted
#79777B

Preview Lab

Preview with #160542

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#160542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva