#160842#160842

#160842 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.100 H 284.5°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#160842
RGBrgb(22, 8, 66)
HSLhsl(254, 78%, 15%)
HSVhsv(254, 88%, 26%)
CMYKcmyk(66.7%, 87.9%, 0%, 74.1%)
CIE-LABlab(6.66, 24.91, -33.59)
CIE-LCHlch(6.66, 41.82, 306.56°)
OKLaboklab(20.6% 0.0251 -0.0972)
OKLCHoklch(20.6% 0.1 284.5)
XYZxyz(1.4008, 0.7375, 5.2217)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160842 #344208
analogous
#081742 #160842 #330842
triadic
#160842 #421608 #084216
tetradic
#160842 #420817 #344208 #084233
square
#160842 #420817 #344208 #084233
split-complementary
#160842 #423308 #174208
monochromatic
#09031B #09031B #160842 #280F79 #3A15AF

Accessibility & contrast

On white

18.30
#160842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #160842
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160842#FFFFFF#000000##FFFFFF
##1608421.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #160842;
/* rgb */ color: rgb(22, 8, 66);
/* oklch */ color: oklch(20.6% 0.100 284.5);
Tailwind
colors: {
  custom: {
    50: '#5a4977',
    500: '#160842',
    950: '#000000',
  },
}
SCSS
$custom: #160842;
$custom-light: #5a4977;
$custom-dark: #000000;
JSON
{
  "hex": "#160842",
  "rgb": {
    "r": 22,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 254.483,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20601,
    "c": 0.1004,
    "h": 284.5
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#160842
secondary
#6A8025
accent
#F533C6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #160842

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

Preview Lab → · Contrast checker → · Palette generator →

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