#5F1884#5F1884

#5F1884 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.169 H 310.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5F1884
RGBrgb(95, 24, 132)
HSLhsl(279, 69%, 31%)
HSVhsv(279, 82%, 52%)
CMYKcmyk(28%, 81.8%, 0%, 48.2%)
CIE-LABlab(26.02, 48.55, -45.37)
CIE-LCHlch(26.02, 66.45, 316.94°)
OKLaboklab(38.42% 0.1096 -0.1287)
OKLCHoklch(38.42% 0.169 310.4)
XYZxyz(9.2100, 4.7523, 22.2574)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1884 #3D8418
analogous
#291884 #5F1884 #841873
triadic
#5F1884 #845F18 #18845F
tetradic
#5F1884 #842918 #3D8418 #187384
square
#5F1884 #842918 #3D8418 #187384
split-complementary
#5F1884 #738418 #188429
monochromatic
#14051C #3A0F50 #5F1884 #8421B8 #A43BDB

Accessibility & contrast

On white

10.77
#5F1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1884
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1884#FFFFFF#000000##FFFFFF
##5F18841.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1884;
/* rgb */ color: rgb(95, 24, 132);
/* oklch */ color: oklch(38.4% 0.169 310.4);
Tailwind
colors: {
  custom: {
    50: '#915fa9',
    500: '#5f1884',
    950: '#000000',
  },
}
SCSS
$custom: #5f1884;
$custom-light: #915fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1884",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 279.444,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38422,
    "c": 0.16907,
    "h": 310.4
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#5F1884
secondary
#69B840
accent
#EC3C78
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1884

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

Preview Lab → · Contrast checker → · Palette generator →

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