#160942#160942

#160942 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.099 H 284.1°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#160942
RGBrgb(22, 9, 66)
HSLhsl(254, 76%, 15%)
HSVhsv(254, 86%, 26%)
CMYKcmyk(66.7%, 86.4%, 0%, 74.1%)
CIE-LABlab(6.86, 24.38, -33.27)
CIE-LCHlch(6.86, 41.25, 306.23°)
OKLaboklab(20.75% 0.0242 -0.0962)
OKLCHoklch(20.75% 0.099 284.1)
XYZxyz(1.4116, 0.7592, 5.2254)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160942 #354209
analogous
#091942 #160942 #330942
triadic
#160942 #421609 #094216
tetradic
#160942 #420919 #354209 #094233
square
#160942 #420919 #354209 #094233
split-complementary
#160942 #423309 #194209
monochromatic
#09041B #09041B #160942 #281078 #3A18AE

Accessibility & contrast

On white

18.23
#160942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#160942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #160942
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160942#FFFFFF#000000##FFFFFF
##1609421.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001925
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #160942;
/* rgb */ color: rgb(22, 9, 66);
/* oklch */ color: oklch(20.8% 0.099 284.1);
Tailwind
colors: {
  custom: {
    50: '#5a4a77',
    500: '#160942',
    950: '#000000',
  },
}
SCSS
$custom: #160942;
$custom-light: #5a4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#160942",
  "rgb": {
    "r": 22,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 253.684,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20754,
    "c": 0.09918,
    "h": 284.1
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#160942
secondary
#6C8027
accent
#F335C7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #160942

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

Preview Lab → · Contrast checker → · Palette generator →

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