#5F145F#5F145F

#5F145F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.140 H 328.0°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5F145F
RGBrgb(95, 20, 95)
HSLhsl(300, 65%, 23%)
HSVhsv(300, 79%, 37%)
CMYKcmyk(0%, 78.9%, 0%, 62.7%)
CIE-LABlab(22.86, 42.43, -26.65)
CIE-LCHlch(22.86, 50.10, 327.86°)
OKLaboklab(35.34% 0.1184 -0.0739)
OKLCHoklch(35.34% 0.14 328)
XYZxyz(7.0349, 3.7599, 11.1795)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F145F #145F14
analogous
#39145F #5F145F #5F1439
triadic
#5F145F #5F5F14 #145F5F
tetradic
#5F145F #5F3914 #145F14 #14395F
square
#5F145F #5F3914 #145F14 #14395F
split-complementary
#5F145F #395F14 #145F39
monochromatic
#190519 #2C092C #5F145F #921F92 #C429C4

Accessibility & contrast

On white

11.99
#5F145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F145F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F145F#FFFFFF#000000##FFFFFF
##5F145F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043061
Deuteranopia (green-blind)
#293A5D
Tritanopia (blue-blind)
#622038
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f145f;
/* rgb */ color: rgb(95, 20, 95);
/* oklch */ color: oklch(35.3% 0.140 328.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b8d',
    500: '#5f145f',
    950: '#000000',
  },
}
SCSS
$custom: #5f145f;
$custom-light: #8f5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f145f",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35344,
    "c": 0.13954,
    "h": 328
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#5F145F
secondary
#389738
accent
#E84040
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F145F

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

Preview Lab → · Contrast checker → · Palette generator →

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