#5F1989#5F1989

#5F1989 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.173 H 308.5°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5F1989
RGBrgb(95, 25, 137)
HSLhsl(278, 69%, 32%)
HSVhsv(278, 82%, 54%)
CMYKcmyk(30.7%, 81.8%, 0%, 46.3%)
CIE-LABlab(26.55, 49.31, -47.64)
CIE-LCHlch(26.55, 68.56, 315.99°)
OKLaboklab(38.92% 0.1075 -0.1354)
OKLCHoklch(38.92% 0.173 308.5)
XYZxyz(9.5814, 4.9345, 24.1098)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1989 #438919
analogous
#271989 #5F1989 #89197B
triadic
#5F1989 #895F19 #19895F
tetradic
#5F1989 #892719 #438919 #197B89
square
#5F1989 #892719 #438919 #197B89
split-complementary
#5F1989 #7B8919 #198927
monochromatic
#170621 #3B1055 #5F1989 #8322BD #A240DC

Accessibility & contrast

On white

10.57
#5F1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1989
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1989#FFFFFF#000000##FFFFFF
##5F19891.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1989;
/* rgb */ color: rgb(95, 25, 137);
/* oklch */ color: oklch(38.9% 0.173 308.5);
Tailwind
colors: {
  custom: {
    50: '#915fac',
    500: '#5f1989',
    950: '#000000',
  },
}
SCSS
$custom: #5f1989;
$custom-light: #915fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1989",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 277.5,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3892,
    "c": 0.17291,
    "h": 308.5
  },
  "luminance": 0.04934
}

Semantic roles & 50–950 ramp

primary
#5F1989
secondary
#70BC41
accent
#EC3C7E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1989

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

Preview Lab → · Contrast checker → · Palette generator →

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