#5A1667#5A1667

#5A1667 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.142 H 320.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#5A1667
RGBrgb(90, 22, 103)
HSLhsl(290, 65%, 25%)
HSVhsv(290, 79%, 40%)
CMYKcmyk(12.6%, 78.6%, 0%, 59.6%)
CIE-LABlab(22.75, 42.08, -32.13)
CIE-LCHlch(22.75, 52.95, 322.63°)
OKLaboklab(35.26% 0.1097 -0.09)
OKLCHoklch(35.26% 0.142 320.6)
XYZxyz(6.9512, 3.7271, 13.1826)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1667 #236716
analogous
#311667 #5A1667 #67164C
triadic
#5A1667 #675A16 #16675A
tetradic
#5A1667 #673116 #236716 #164C67
square
#5A1667 #673116 #236716 #164C67
split-complementary
#5A1667 #4C6716 #166731
monochromatic
#160519 #2E0B35 #5A1667 #862199 #B22CCC

Accessibility & contrast

On white

12.03
#5A1667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A1667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1667
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1667#FFFFFF#000000##FFFFFF
##5A16671.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#1F3965
Tritanopia (blue-blind)
#5B263D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1667;
/* rgb */ color: rgb(90, 22, 103);
/* oklch */ color: oklch(35.3% 0.142 320.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b93',
    500: '#5a1667',
    950: '#000000',
  },
}
SCSS
$custom: #5a1667;
$custom-light: #8c5b93;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1667",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 290.37,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35259,
    "c": 0.14192,
    "h": 320.6
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#5A1667
secondary
#4B9E3B
accent
#E8405B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1667

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

Preview Lab → · Contrast checker → · Palette generator →

#5A1667 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva