#160540#160540

#160540 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.9% C 0.102 H 286.4°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#160540
RGBrgb(22, 5, 64)
HSLhsl(257, 86%, 14%)
HSVhsv(257, 92%, 25%)
CMYKcmyk(65.6%, 92.2%, 0%, 74.9%)
CIE-LABlab(5.86, 25.65, -33.47)
CIE-LCHlch(5.86, 42.17, 307.46°)
OKLaboklab(19.88% 0.0286 -0.0975)
OKLCHoklch(19.88% 0.102 286.4)
XYZxyz(1.3103, 0.6492, 4.9058)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160540 #2F4005
analogous
#051140 #160540 #330540
triadic
#160540 #401605 #054016
tetradic
#160540 #400511 #2F4005 #054033
square
#160540 #400511 #2F4005 #054033
split-complementary
#160540 #403305 #114005
monochromatic
#0A021C #0A021C #160540 #2A0979 #3D0EB2

Accessibility & contrast

On white

18.59
#160540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #160540
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160540#FFFFFF#000000##FFFFFF
##1605401.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#031723
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #160540;
/* rgb */ color: rgb(22, 5, 64);
/* oklch */ color: oklch(19.9% 0.102 286.4);
Tailwind
colors: {
  custom: {
    50: '#5a4876',
    500: '#160540',
    950: '#000000',
  },
}
SCSS
$custom: #160540;
$custom-light: #5a4876;
$custom-dark: #000000;
JSON
{
  "hex": "#160540",
  "rgb": {
    "r": 22,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 257.288,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19877,
    "c": 0.10164,
    "h": 286.4
  },
  "luminance": 0.00649
}

Semantic roles & 50–950 ramp

primary
#160540
secondary
#658120
accent
#FC2CC0
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #160540

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

Preview Lab → · Contrast checker → · Palette generator →

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