#5F145E#5F145E

#5F145E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.139 H 328.6°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#5F145E
RGBrgb(95, 20, 94)
HSLhsl(301, 65%, 23%)
HSVhsv(301, 79%, 37%)
CMYKcmyk(0%, 78.9%, 1.1%, 62.7%)
CIE-LABlab(22.80, 42.24, -26.09)
CIE-LCHlch(22.80, 49.65, 328.30°)
OKLaboklab(35.28% 0.1184 -0.0722)
OKLCHoklch(35.28% 0.139 328.6)
XYZxyz(6.9898, 3.7419, 10.9416)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F145E #145F15
analogous
#3A145F #5F145E #5F1438
triadic
#5F145E #5E5F14 #145E5F
tetradic
#5F145E #5F3A14 #145F15 #14385F
square
#5F145E #5F3A14 #145F15 #14385F
split-complementary
#5F145E #385F14 #145F3A
monochromatic
#190519 #2C092C #5F145E #921F90 #C429C2

Accessibility & contrast

On white

12.01
#5F145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F145E
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F145E#FFFFFF#000000##FFFFFF
##5F145E1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063060
Deuteranopia (green-blind)
#293A5C
Tritanopia (blue-blind)
#621F38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f145e;
/* rgb */ color: rgb(95, 20, 94);
/* oklch */ color: oklch(35.3% 0.139 328.6);
Tailwind
colors: {
  custom: {
    50: '#8f5b8c',
    500: '#5f145e',
    950: '#000000',
  },
}
SCSS
$custom: #5f145e;
$custom-light: #8f5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f145e",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 300.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3528,
    "c": 0.13869,
    "h": 328.6
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#5F145E
secondary
#389739
accent
#E84240
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F145E

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

Preview Lab → · Contrast checker → · Palette generator →

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