#5F145C#5F145C

#5F145C is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.137 H 329.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#5F145C
RGBrgb(95, 20, 92)
HSLhsl(302, 65%, 23%)
HSVhsv(302, 79%, 37%)
CMYKcmyk(0%, 78.9%, 3.2%, 62.7%)
CIE-LABlab(22.68, 41.89, -24.96)
CIE-LCHlch(22.68, 48.76, 329.21°)
OKLaboklab(35.15% 0.1184 -0.069)
OKLCHoklch(35.15% 0.137 329.8)
XYZxyz(6.9012, 3.7064, 10.4751)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F145C #145F17
analogous
#3C145F #5F145C #5F1436
triadic
#5F145C #5C5F14 #145C5F
tetradic
#5F145C #5F3C14 #145F17 #14365F
square
#5F145C #5F3C14 #145F17 #14365F
split-complementary
#5F145C #365F14 #145F3C
monochromatic
#190518 #2C092B #5F145C #921F8D #C429BE

Accessibility & contrast

On white

12.06
#5F145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F145C
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F145C#FFFFFF#000000##FFFFFF
##5F145C1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305E
Deuteranopia (green-blind)
#2B3A5A
Tritanopia (blue-blind)
#631E37
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f145c;
/* rgb */ color: rgb(95, 20, 92);
/* oklch */ color: oklch(35.2% 0.137 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b8a',
    500: '#5f145c',
    950: '#000000',
  },
}
SCSS
$custom: #5f145c;
$custom-light: #8f5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f145c",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 302.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35152,
    "c": 0.13701,
    "h": 329.8
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#5F145C
secondary
#38973C
accent
#E84640
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F145C

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

Preview Lab → · Contrast checker → · Palette generator →

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