#5F1885#5F1885

#5F1885 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.170 H 310.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5F1885
RGBrgb(95, 24, 133)
HSLhsl(279, 69%, 31%)
HSVhsv(279, 82%, 52%)
CMYKcmyk(28.6%, 82%, 0%, 47.8%)
CIE-LABlab(26.10, 48.77, -45.87)
CIE-LCHlch(26.10, 66.95, 316.76°)
OKLaboklab(38.5% 0.1094 -0.1302)
OKLCHoklch(38.5% 0.17 310)
XYZxyz(9.2787, 4.7798, 22.6196)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1885 #3E8518
analogous
#291885 #5F1885 #851874
triadic
#5F1885 #855F18 #18855F
tetradic
#5F1885 #852918 #3E8518 #187485
square
#5F1885 #852918 #3E8518 #187485
split-complementary
#5F1885 #748518 #188529
monochromatic
#15051D #3A0F51 #5F1885 #8421B9 #A43CDC

Accessibility & contrast

On white

10.74
#5F1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1885
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1885#FFFFFF#000000##FFFFFF
##5F18851.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#59344F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1885;
/* rgb */ color: rgb(95, 24, 133);
/* oklch */ color: oklch(38.5% 0.170 310.0);
Tailwind
colors: {
  custom: {
    50: '#915fa9',
    500: '#5f1885',
    950: '#000000',
  },
}
SCSS
$custom: #5f1885;
$custom-light: #915fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1885",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 279.083,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38504,
    "c": 0.17003,
    "h": 310
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#5F1885
secondary
#6AB940
accent
#EC3C79
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1885

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

Preview Lab → · Contrast checker → · Palette generator →

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