#5F1A84#5F1A84

#5F1A84 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.167 H 310.2°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5F1A84
RGBrgb(95, 26, 132)
HSLhsl(279, 67%, 31%)
HSVhsv(279, 80%, 52%)
CMYKcmyk(28%, 80.3%, 0%, 48.2%)
CIE-LABlab(26.27, 47.82, -44.97)
CIE-LCHlch(26.27, 65.64, 316.76°)
OKLaboklab(38.6% 0.1079 -0.1275)
OKLCHoklch(38.6% 0.167 310.2)
XYZxyz(9.2527, 4.8378, 22.2717)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A84 #3F841A
analogous
#2A1A84 #5F1A84 #841A74
triadic
#5F1A84 #845F1A #1A845F
tetradic
#5F1A84 #842A1A #3F841A #1A7484
square
#5F1A84 #842A1A #3F841A #1A7484
split-complementary
#5F1A84 #74841A #1A842A
monochromatic
#15061E #3A1051 #5F1A84 #8424B7 #A33FD9

Accessibility & contrast

On white

10.67
#5F1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1A84
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A84#FFFFFF#000000##FFFFFF
##5F1A841.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.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: #5f1a84;
/* rgb */ color: rgb(95, 26, 132);
/* oklch */ color: oklch(38.6% 0.167 310.2);
Tailwind
colors: {
  custom: {
    50: '#915fa8',
    500: '#5f1a84',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a84;
$custom-light: #915fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a84",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 279.057,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38597,
    "c": 0.16707,
    "h": 310.2
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#5F1A84
secondary
#6BB842
accent
#EA3E7A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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