#5F1B98#5F1B98

#5F1B98 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.186 H 303.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5F1B98
RGBrgb(95, 27, 152)
HSLhsl(273, 70%, 35%)
HSVhsv(273, 82%, 60%)
CMYKcmyk(37.5%, 82.2%, 0%, 40.4%)
CIE-LABlab(28.07, 52.05, -54.43)
CIE-LCHlch(28.07, 75.31, 313.72°)
OKLaboklab(40.38% 0.1017 -0.1554)
OKLCHoklch(40.38% 0.186 303.2)
XYZxyz(10.7774, 5.4838, 30.1904)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B98 #54981B
analogous
#211B98 #5F1B98 #981B92
triadic
#5F1B98 #985F1B #1B985F
tetradic
#5F1B98 #98211B #54981B #1B9298
square
#5F1B98 #98211B #54981B #1B9298
split-complementary
#5F1B98 #92981B #1B9821
monochromatic
#1E0930 #3F1264 #5F1B98 #7F24CC #9D4EE0

Accessibility & contrast

On white

10.02
#5F1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B98
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B98#FFFFFF#000000##FFFFFF
##5F1B981.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#533E5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1b98;
/* rgb */ color: rgb(95, 27, 152);
/* oklch */ color: oklch(40.4% 0.186 303.2);
Tailwind
colors: {
  custom: {
    50: '#9261b7',
    500: '#5f1b98',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b98;
$custom-light: #9261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b98",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 272.64,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40378,
    "c": 0.18571,
    "h": 303.2
  },
  "luminance": 0.05484
}

Semantic roles & 50–950 ramp

primary
#5F1B98
secondary
#82C24D
accent
#ED3B8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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