#5F145A#5F145A

#5F145A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.135 H 331.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#5F145A
RGBrgb(95, 20, 90)
HSLhsl(304, 65%, 23%)
HSVhsv(304, 79%, 37%)
CMYKcmyk(0%, 78.9%, 5.3%, 62.7%)
CIE-LABlab(22.56, 41.53, -23.82)
CIE-LCHlch(22.56, 47.88, 330.16°)
OKLaboklab(35.03% 0.1184 -0.0657)
OKLCHoklch(35.03% 0.135 331)
XYZxyz(6.8149, 3.6719, 10.0207)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F145A #145F19
analogous
#3E145F #5F145A #5F1434
triadic
#5F145A #5A5F14 #145A5F
tetradic
#5F145A #5F3E14 #145F19 #14345F
square
#5F145A #5F3E14 #145F19 #14345F
split-complementary
#5F145A #345F14 #145F3E
monochromatic
#190518 #2C092A #5F145A #921F8A #C429BA

Accessibility & contrast

On white

12.11
#5F145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5F145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F145A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F145A#FFFFFF#000000##FFFFFF
##5F145A1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#2C3958
Tritanopia (blue-blind)
#631D36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f145a;
/* rgb */ color: rgb(95, 20, 90);
/* oklch */ color: oklch(35.0% 0.135 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b89',
    500: '#5f145a',
    950: '#000000',
  },
}
SCSS
$custom: #5f145a;
$custom-light: #8f5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f145a",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 304,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.13534,
    "h": 331
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#5F145A
secondary
#38973E
accent
#E84B40
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F145A

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

Preview Lab → · Contrast checker → · Palette generator →

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