#5F146D#5F146D

#5F146D is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.152 H 320.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#5F146D
RGBrgb(95, 20, 109)
HSLhsl(291, 69%, 25%)
HSVhsv(291, 82%, 43%)
CMYKcmyk(12.8%, 81.7%, 0%, 57.3%)
CIE-LABlab(23.80, 45.09, -34.30)
CIE-LCHlch(23.80, 56.66, 322.74°)
OKLaboklab(36.31% 0.1174 -0.0962)
OKLCHoklch(36.31% 0.152 320.7)
XYZxyz(7.7295, 4.0378, 14.8373)
Luminance0.0404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F146D #226D14
analogous
#33146D #5F146D #6D144E
triadic
#5F146D #6D5F14 #146D5F
tetradic
#5F146D #6D3314 #226D14 #144E6D
square
#5F146D #6D3314 #226D14 #144E6D
split-complementary
#5F146D #4E6D14 #146D33
monochromatic
#17051A #320B39 #5F146D #8C1DA1 #B927D4

Accessibility & contrast

On white

11.62
#5F146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5F146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F146D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F146D#FFFFFF#000000##FFFFFF
##5F146D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1E3B6B
Tritanopia (blue-blind)
#602740
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f146d;
/* rgb */ color: rgb(95, 20, 109);
/* oklch */ color: oklch(36.3% 0.152 320.7);
Tailwind
colors: {
  custom: {
    50: '#905c97',
    500: '#5f146d',
    950: '#000000',
  },
}
SCSS
$custom: #5f146d;
$custom-light: #905c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f146d",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 290.562,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36308,
    "c": 0.15178,
    "h": 320.7
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#5F146D
secondary
#4AA439
accent
#EC3C58
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F146D

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

Preview Lab → · Contrast checker → · Palette generator →

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