#5F1A8E#5F1A8E

#5F1A8E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.177 H 306.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5F1A8E
RGBrgb(95, 26, 142)
HSLhsl(276, 69%, 33%)
HSVhsv(276, 82%, 56%)
CMYKcmyk(33.1%, 81.7%, 0%, 44.3%)
CIE-LABlab(27.09, 50.09, -49.87)
CIE-LCHlch(27.09, 70.68, 315.12°)
OKLaboklab(39.43% 0.1054 -0.142)
OKLCHoklch(39.43% 0.177 306.6)
XYZxyz(9.9701, 5.1248, 26.0499)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A8E #498E1A
analogous
#251A8E #5F1A8E #8E1A83
triadic
#5F1A8E #8E5F1A #1A8E5F
tetradic
#5F1A8E #8E251A #498E1A #1A838E
square
#5F1A8E #8E251A #498E1A #1A838E
split-complementary
#5F1A8E #838E1A #1A8E25
monochromatic
#1A0727 #3C115A #5F1A8E #8223C2 #A045DD

Accessibility & contrast

On white

10.37
#5F1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A8E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A8E#FFFFFF#000000##FFFFFF
##5F1A8E1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#573955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1a8e;
/* rgb */ color: rgb(95, 26, 142);
/* oklch */ color: oklch(39.4% 0.177 306.6);
Tailwind
colors: {
  custom: {
    50: '#9260b0',
    500: '#5f1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a8e;
$custom-light: #9260b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a8e",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 275.69,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.17681,
    "h": 306.6
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#5F1A8E
secondary
#76BE45
accent
#EC3C83
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5F1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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