#5F1458#5F1458

#5F1458 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.134 H 332.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5F1458
RGBrgb(95, 20, 88)
HSLhsl(306, 65%, 23%)
HSVhsv(306, 79%, 37%)
CMYKcmyk(0%, 78.9%, 7.4%, 62.7%)
CIE-LABlab(22.44, 41.18, -22.68)
CIE-LCHlch(22.44, 47.01, 331.16°)
OKLaboklab(34.9% 0.1183 -0.0623)
OKLCHoklch(34.9% 0.134 332.2)
XYZxyz(6.7309, 3.6383, 9.5784)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1458 #145F1B
analogous
#40145F #5F1458 #5F1432
triadic
#5F1458 #585F14 #14585F
tetradic
#5F1458 #5F4014 #145F1B #14325F
square
#5F1458 #5F4014 #145F1B #14325F
split-complementary
#5F1458 #325F14 #145F40
monochromatic
#190517 #2C0929 #5F1458 #921F87 #C429B6

Accessibility & contrast

On white

12.16
#5F1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1458
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1458#FFFFFF#000000##FFFFFF
##5F14581.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2F5A
Deuteranopia (green-blind)
#2D3956
Tritanopia (blue-blind)
#631C35
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1458;
/* rgb */ color: rgb(95, 20, 88);
/* oklch */ color: oklch(34.9% 0.134 332.2);
Tailwind
colors: {
  custom: {
    50: '#8f5b87',
    500: '#5f1458',
    950: '#000000',
  },
}
SCSS
$custom: #5f1458;
$custom-light: #8f5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1458",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 305.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.1337,
    "h": 332.2
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#5F1458
secondary
#389741
accent
#E84F40
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1458

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

Preview Lab → · Contrast checker → · Palette generator →

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