#5F1789#5F1789

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

Color values

HEX#5F1789
RGBrgb(95, 23, 137)
HSLhsl(278, 71%, 31%)
HSVhsv(278, 83%, 54%)
CMYKcmyk(30.7%, 83.2%, 0%, 46.3%)
CIE-LABlab(26.31, 50.00, -48.03)
CIE-LCHlch(26.31, 69.33, 316.15°)
OKLaboklab(38.75% 0.1091 -0.1365)
OKLCHoklch(38.75% 0.175 308.6)
XYZxyz(9.5401, 4.8520, 24.0960)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1789 #418917
analogous
#261789 #5F1789 #89177A
triadic
#5F1789 #895F17 #17895F
tetradic
#5F1789 #892617 #418917 #177A89
square
#5F1789 #892617 #418917 #177A89
split-complementary
#5F1789 #7A8917 #178926
monochromatic
#160520 #3B0E55 #5F1789 #8320BD #A33CDE

Accessibility & contrast

On white

10.66
#5F1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1789
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1789#FFFFFF#000000##FFFFFF
##5F17891.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1789;
/* rgb */ color: rgb(95, 23, 137);
/* oklch */ color: oklch(38.8% 0.175 308.6);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5f1789',
    950: '#000000',
  },
}
SCSS
$custom: #5f1789;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1789",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 277.895,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38753,
    "c": 0.17478,
    "h": 308.6
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#5F1789
secondary
#6DBD3F
accent
#EE3A7C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1789

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

Preview Lab → · Contrast checker → · Palette generator →

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