#5F1F87#5F1F87

#5F1F87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.165 H 308.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5F1F87
RGBrgb(95, 31, 135)
HSLhsl(277, 63%, 33%)
HSVhsv(277, 77%, 53%)
CMYKcmyk(29.6%, 77%, 0%, 47.1%)
CIE-LABlab(27.19, 46.53, -45.34)
CIE-LCHlch(27.19, 64.97, 315.74°)
OKLaboklab(39.32% 0.1026 -0.1287)
OKLCHoklch(39.32% 0.165 308.6)
XYZxyz(9.5816, 5.1623, 23.4086)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F87 #47871F
analogous
#2B1F87 #5F1F87 #871F7B
triadic
#5F1F87 #875F1F #1F875F
tetradic
#5F1F87 #872B1F #47871F #1F7B87
square
#5F1F87 #872B1F #47871F #1F7B87
split-complementary
#5F1F87 #7B871F #1F872B
monochromatic
#190823 #3C1455 #5F1F87 #822AB9 #A04BD6

Accessibility & contrast

On white

10.33
#5F1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1F87
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F87#FFFFFF#000000##FFFFFF
##5F1F871.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#593852
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1f87;
/* rgb */ color: rgb(95, 31, 135);
/* oklch */ color: oklch(39.3% 0.165 308.6);
Tailwind
colors: {
  custom: {
    50: '#9162ab',
    500: '#5f1f87',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f87;
$custom-light: #9162ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f87",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 276.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39322,
    "c": 0.1646,
    "h": 308.6
  },
  "luminance": 0.05162
}

Semantic roles & 50–950 ramp

primary
#5F1F87
secondary
#74B84A
accent
#E64281
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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