#5F1D91#5F1D91

#5F1D91 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.177 H 305.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5F1D91
RGBrgb(95, 29, 145)
HSLhsl(274, 67%, 34%)
HSVhsv(274, 80%, 57%)
CMYKcmyk(34.5%, 80%, 0%, 43.1%)
CIE-LABlab(27.73, 49.66, -50.69)
CIE-LCHlch(27.73, 70.96, 314.42°)
OKLaboklab(39.95% 0.1021 -0.1444)
OKLCHoklch(39.95% 0.177 305.3)
XYZxyz(10.2684, 5.3560, 27.2754)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D91 #4F911D
analogous
#251D91 #5F1D91 #911D89
triadic
#5F1D91 #915F1D #1D915F
tetradic
#5F1D91 #91251D #4F911D #1D8991
square
#5F1D91 #91251D #4F911D #1D8991
split-complementary
#5F1D91 #89911D #1D9125
monochromatic
#1C092B #3E135E #5F1D91 #8027C4 #9E4DDB

Accessibility & contrast

On white

10.14
#5F1D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F1D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D91
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D91#FFFFFF#000000##FFFFFF
##5F1D911.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#563B57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1d91;
/* rgb */ color: rgb(95, 29, 145);
/* oklch */ color: oklch(40.0% 0.177 305.3);
Tailwind
colors: {
  custom: {
    50: '#9261b2',
    500: '#5f1d91',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d91;
$custom-light: #9261b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d91",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 274.138,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39951,
    "c": 0.17684,
    "h": 305.3
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#5F1D91
secondary
#7DBE4C
accent
#EA3E88
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1D91

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

Preview Lab → · Contrast checker → · Palette generator →

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