#5F1689#5F1689

#5F1689 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.176 H 308.7°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5F1689
RGBrgb(95, 22, 137)
HSLhsl(278, 72%, 31%)
HSVhsv(278, 84%, 54%)
CMYKcmyk(30.7%, 83.9%, 0%, 46.3%)
CIE-LABlab(26.20, 50.33, -48.21)
CIE-LCHlch(26.20, 69.70, 316.23°)
OKLaboklab(38.67% 0.1099 -0.1371)
OKLCHoklch(38.67% 0.176 308.7)
XYZxyz(9.5206, 4.8130, 24.0895)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1689 #408916
analogous
#251689 #5F1689 #891679
triadic
#5F1689 #895F16 #16895F
tetradic
#5F1689 #892516 #408916 #167989
square
#5F1689 #892516 #408916 #167989
split-complementary
#5F1689 #798916 #168925
monochromatic
#160520 #3A0E54 #5F1689 #841EBE #A33ADF

Accessibility & contrast

On white

10.70
#5F1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1689
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1689#FFFFFF#000000##FFFFFF
##5F16891.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#583551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1689;
/* rgb */ color: rgb(95, 22, 137);
/* oklch */ color: oklch(38.7% 0.176 308.7);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5f1689',
    950: '#000000',
  },
}
SCSS
$custom: #5f1689;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1689",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 278.087,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.17567,
    "h": 308.7
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#5F1689
secondary
#6CBD3E
accent
#EF397B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1689

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

Preview Lab → · Contrast checker → · Palette generator →

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