#5F145B#5F145B

#5F145B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.136 H 330.4°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5F145B
RGBrgb(95, 20, 91)
HSLhsl(303, 65%, 23%)
HSVhsv(303, 79%, 37%)
CMYKcmyk(0%, 78.9%, 4.2%, 62.7%)
CIE-LABlab(22.62, 41.71, -24.39)
CIE-LCHlch(22.62, 48.32, 329.68°)
OKLaboklab(35.09% 0.1184 -0.0673)
OKLCHoklch(35.09% 0.136 330.4)
XYZxyz(6.8578, 3.6891, 10.2464)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F145B #145F18
analogous
#3D145F #5F145B #5F1435
triadic
#5F145B #5B5F14 #145B5F
tetradic
#5F145B #5F3D14 #145F18 #14355F
square
#5F145B #5F3D14 #145F18 #14355F
split-complementary
#5F145B #355F14 #145F3D
monochromatic
#190518 #2C092B #5F145B #921F8B #C429BC

Accessibility & contrast

On white

12.08
#5F145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F145B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F145B#FFFFFF#000000##FFFFFF
##5F145B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2F5D
Deuteranopia (green-blind)
#2B3A59
Tritanopia (blue-blind)
#631E36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f145b;
/* rgb */ color: rgb(95, 20, 91);
/* oklch */ color: oklch(35.1% 0.136 330.4);
Tailwind
colors: {
  custom: {
    50: '#8f5b8a',
    500: '#5f145b',
    950: '#000000',
  },
}
SCSS
$custom: #5f145b;
$custom-light: #8f5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f145b",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 303.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35089,
    "c": 0.13617,
    "h": 330.4
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#5F145B
secondary
#38973D
accent
#E84940
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F145B

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

Preview Lab → · Contrast checker → · Palette generator →

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