#5F146E#5F146E

#5F146E is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.153 H 320.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#5F146E
RGBrgb(95, 20, 110)
HSLhsl(290, 69%, 25%)
HSVhsv(290, 82%, 43%)
CMYKcmyk(13.6%, 81.8%, 0%, 56.9%)
CIE-LABlab(23.87, 45.29, -34.84)
CIE-LCHlch(23.87, 57.14, 322.43°)
OKLaboklab(36.38% 0.1173 -0.0978)
OKLCHoklch(36.38% 0.153 320.2)
XYZxyz(7.7836, 4.0594, 15.1224)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F146E #236E14
analogous
#32146E #5F146E #6E1450
triadic
#5F146E #6E5F14 #146E5F
tetradic
#5F146E #6E3214 #236E14 #14506E
square
#5F146E #6E3214 #236E14 #14506E
split-complementary
#5F146E #506E14 #146E32
monochromatic
#16051A #320B3A #5F146E #8C1DA2 #B827D6

Accessibility & contrast

On white

11.59
#5F146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F146E
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F146E#FFFFFF#000000##FFFFFF
##5F146E1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#1D3B6C
Tritanopia (blue-blind)
#5F2741
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f146e;
/* rgb */ color: rgb(95, 20, 110);
/* oklch */ color: oklch(36.4% 0.153 320.2);
Tailwind
colors: {
  custom: {
    50: '#905c98',
    500: '#5f146e',
    950: '#000000',
  },
}
SCSS
$custom: #5f146e;
$custom-light: #905c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5f146e",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 290,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36381,
    "c": 0.15267,
    "h": 320.2
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#5F146E
secondary
#4BA539
accent
#EC3C59
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F146E

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

Preview Lab → · Contrast checker → · Palette generator →

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