#5F1889#5F1889

#5F1889 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.174 H 308.6°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5F1889
RGBrgb(95, 24, 137)
HSLhsl(278, 70%, 32%)
HSVhsv(278, 82%, 54%)
CMYKcmyk(30.7%, 82.5%, 0%, 46.3%)
CIE-LABlab(26.43, 49.66, -47.84)
CIE-LCHlch(26.43, 68.95, 316.07°)
OKLaboklab(38.83% 0.1084 -0.136)
OKLCHoklch(38.83% 0.174 308.6)
XYZxyz(9.5604, 4.8925, 24.1028)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1889 #428918
analogous
#271889 #5F1889 #89187B
triadic
#5F1889 #895F18 #18895F
tetradic
#5F1889 #892718 #428918 #187B89
square
#5F1889 #892718 #428918 #187B89
split-complementary
#5F1889 #7B8918 #188927
monochromatic
#170621 #3B0F55 #5F1889 #8321BD #A23EDD

Accessibility & contrast

On white

10.61
#5F1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1889
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1889#FFFFFF#000000##FFFFFF
##5F18891.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1889;
/* rgb */ color: rgb(95, 24, 137);
/* oklch */ color: oklch(38.8% 0.174 308.6);
Tailwind
colors: {
  custom: {
    50: '#915fac',
    500: '#5f1889',
    950: '#000000',
  },
}
SCSS
$custom: #5f1889;
$custom-light: #915fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1889",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 277.699,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38835,
    "c": 0.17386,
    "h": 308.6
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#5F1889
secondary
#6EBD40
accent
#ED3B7D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1889

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

Preview Lab → · Contrast checker → · Palette generator →

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