#5F1D97#5F1D97

#5F1D97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.183 H 303.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5F1D97
RGBrgb(95, 29, 151)
HSLhsl(272, 68%, 35%)
HSVhsv(272, 81%, 59%)
CMYKcmyk(37.1%, 80.8%, 0%, 40.8%)
CIE-LABlab(28.24, 51.08, -53.55)
CIE-LCHlch(28.24, 74.00, 313.65°)
OKLaboklab(40.47% 0.1005 -0.1528)
OKLCHoklch(40.47% 0.183 303.3)
XYZxyz(10.7433, 5.5460, 29.7767)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D97 #55971D
analogous
#221D97 #5F1D97 #971D92
triadic
#5F1D97 #975F1D #1D975F
tetradic
#5F1D97 #97221D #55971D #1D9297
square
#5F1D97 #97221D #55971D #1D9297
split-complementary
#5F1D97 #92971D #1D9722
monochromatic
#1E0930 #3F1364 #5F1D97 #7F27CA #9D51DE

Accessibility & contrast

On white

9.96
#5F1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D97
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D97#FFFFFF#000000##FFFFFF
##5F1D971.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#533E5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1d97;
/* rgb */ color: rgb(95, 29, 151);
/* oklch */ color: oklch(40.5% 0.183 303.3);
Tailwind
colors: {
  custom: {
    50: '#9262b7',
    500: '#5f1d97',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d97;
$custom-light: #9262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d97",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 272.459,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40466,
    "c": 0.18286,
    "h": 303.3
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#5F1D97
secondary
#83C04F
accent
#EB3D8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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