#5F1B95#5F1B95

#5F1B95 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.183 H 304.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5F1B95
RGBrgb(95, 27, 149)
HSLhsl(273, 69%, 35%)
HSVhsv(273, 82%, 58%)
CMYKcmyk(36.2%, 81.9%, 0%, 41.6%)
CIE-LABlab(27.81, 51.34, -53.02)
CIE-LCHlch(27.81, 73.80, 314.08°)
OKLaboklab(40.12% 0.1026 -0.1512)
OKLCHoklch(40.12% 0.183 304.2)
XYZxyz(10.5348, 5.3867, 28.9127)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B95 #51951B
analogous
#221B95 #5F1B95 #951B8E
triadic
#5F1B95 #955F1B #1B955F
tetradic
#5F1B95 #95221B #51951B #1B8E95
square
#5F1B95 #95221B #51951B #1B8E95
split-complementary
#5F1B95 #8E951B #1B9522
monochromatic
#1D082D #3E1261 #5F1B95 #8024C9 #9E4CDF

Accessibility & contrast

On white

10.11
#5F1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B95
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B95#FFFFFF#000000##FFFFFF
##5F1B951.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#543C59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1b95;
/* rgb */ color: rgb(95, 27, 149);
/* oklch */ color: oklch(40.1% 0.183 304.2);
Tailwind
colors: {
  custom: {
    50: '#9261b5',
    500: '#5f1b95',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b95;
$custom-light: #9261b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b95",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 273.443,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40115,
    "c": 0.18274,
    "h": 304.2
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#5F1B95
secondary
#7FC14B
accent
#EC3C8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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