#5F1984#5F1984

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

Color values

HEX#5F1984
RGBrgb(95, 25, 132)
HSLhsl(279, 68%, 31%)
HSVhsv(279, 81%, 52%)
CMYKcmyk(28%, 81.1%, 0%, 48.2%)
CIE-LABlab(26.14, 48.19, -45.17)
CIE-LCHlch(26.14, 66.05, 316.85°)
OKLaboklab(38.51% 0.1088 -0.1281)
OKLCHoklch(38.51% 0.168 310.3)
XYZxyz(9.2310, 4.7943, 22.2644)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1984 #3E8419
analogous
#291984 #5F1984 #841973
triadic
#5F1984 #845F19 #19845F
tetradic
#5F1984 #842919 #3E8419 #197384
square
#5F1984 #842919 #3E8419 #197384
split-complementary
#5F1984 #738419 #198429
monochromatic
#15061D #3A0F51 #5F1984 #8423B7 #A43DDA

Accessibility & contrast

On white

10.72
#5F1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1984
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1984#FFFFFF#000000##FFFFFF
##5F19841.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#5A344F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1984;
/* rgb */ color: rgb(95, 25, 132);
/* oklch */ color: oklch(38.5% 0.168 310.3);
Tailwind
colors: {
  custom: {
    50: '#915fa8',
    500: '#5f1984',
    950: '#000000',
  },
}
SCSS
$custom: #5f1984;
$custom-light: #915fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1984",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 279.252,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38508,
    "c": 0.16809,
    "h": 310.3
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#5F1984
secondary
#6AB841
accent
#EB3D79
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1984

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

Preview Lab → · Contrast checker → · Palette generator →

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