#5F1888#5F1888

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

Color values

HEX#5F1888
RGBrgb(95, 24, 136)
HSLhsl(278, 70%, 31%)
HSVhsv(278, 82%, 53%)
CMYKcmyk(30.1%, 82.4%, 0%, 46.7%)
CIE-LABlab(26.34, 49.44, -47.35)
CIE-LCHlch(26.34, 68.45, 316.24°)
OKLaboklab(38.75% 0.1086 -0.1345)
OKLCHoklch(38.75% 0.173 308.9)
XYZxyz(9.4890, 4.8639, 23.7267)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1888 #418818
analogous
#271888 #5F1888 #881879
triadic
#5F1888 #885F18 #18885F
tetradic
#5F1888 #882718 #418818 #187988
square
#5F1888 #882718 #418818 #187988
split-complementary
#5F1888 #798818 #188827
monochromatic
#160620 #3B0F54 #5F1888 #8321BC #A33EDD

Accessibility & contrast

On white

10.64
#5F1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1888
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1888#FFFFFF#000000##FFFFFF
##5F18881.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#593551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1888;
/* rgb */ color: rgb(95, 24, 136);
/* oklch */ color: oklch(38.8% 0.173 308.9);
Tailwind
colors: {
  custom: {
    50: '#915fab',
    500: '#5f1888',
    950: '#000000',
  },
}
SCSS
$custom: #5f1888;
$custom-light: #915fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1888",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 278.036,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38752,
    "c": 0.1729,
    "h": 308.9
  },
  "luminance": 0.04864
}

Semantic roles & 50–950 ramp

primary
#5F1888
secondary
#6DBC40
accent
#ED3B7C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1888

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

Preview Lab → · Contrast checker → · Palette generator →

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