#5F1462#5F1462

#5F1462 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.142 H 326.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#5F1462
RGBrgb(95, 20, 98)
HSLhsl(298, 66%, 23%)
HSVhsv(298, 80%, 38%)
CMYKcmyk(3.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(23.05, 42.98, -28.32)
CIE-LCHlch(23.05, 51.47, 326.62°)
OKLaboklab(35.54% 0.1183 -0.0787)
OKLCHoklch(35.54% 0.142 326.4)
XYZxyz(7.1739, 3.8155, 11.9115)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1462 #176214
analogous
#381462 #5F1462 #62143E
triadic
#5F1462 #625F14 #14625F
tetradic
#5F1462 #623814 #176214 #143E62
square
#5F1462 #623814 #176214 #143E62
split-complementary
#5F1462 #3E6214 #146238
monochromatic
#190519 #2E0A2F #5F1462 #901E95 #C229C8

Accessibility & contrast

On white

11.91
#5F1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1462
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1462#FFFFFF#000000##FFFFFF
##5F14621.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#273A60
Tritanopia (blue-blind)
#62213A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1462;
/* rgb */ color: rgb(95, 20, 98);
/* oklch */ color: oklch(35.5% 0.142 326.4);
Tailwind
colors: {
  custom: {
    50: '#8f5b8f',
    500: '#5f1462',
    950: '#000000',
  },
}
SCSS
$custom: #5f1462;
$custom-light: #8f5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1462",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 297.692,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35542,
    "c": 0.14211,
    "h": 326.4
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#5F1462
secondary
#3C9938
accent
#E93F45
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1462

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

Preview Lab → · Contrast checker → · Palette generator →

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