#5F1272#5F1272

#5F1272 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.158 H 318.4°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#5F1272
RGBrgb(95, 18, 114)
HSLhsl(288, 73%, 26%)
HSVhsv(288, 84%, 45%)
CMYKcmyk(16.7%, 84.2%, 0%, 55.3%)
CIE-LABlab(23.94, 46.73, -37.30)
CIE-LCHlch(23.94, 59.79, 321.40°)
OKLaboklab(36.52% 0.1183 -0.105)
OKLCHoklch(36.52% 0.158 318.4)
XYZxyz(7.9725, 4.0808, 16.2841)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1272 #257212
analogous
#2F1272 #5F1272 #721255
triadic
#5F1272 #725F12 #12725F
tetradic
#5F1272 #722F12 #257212 #125572
square
#5F1272 #722F12 #257212 #125572
split-complementary
#5F1272 #557212 #12722F
monochromatic
#16041A #330A3D #5F1272 #8B1AA7 #B723DC

Accessibility & contrast

On white

11.56
#5F1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1272
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1272#FFFFFF#000000##FFFFFF
##5F12721.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#183B70
Tritanopia (blue-blind)
#5E2843
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1272;
/* rgb */ color: rgb(95, 18, 114);
/* oklch */ color: oklch(36.5% 0.158 318.4);
Tailwind
colors: {
  custom: {
    50: '#905b9b',
    500: '#5f1272',
    950: '#000000',
  },
}
SCSS
$custom: #5f1272;
$custom-light: #905b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1272",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 288.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36522,
    "c": 0.15819,
    "h": 318.4
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#5F1272
secondary
#4DA937
accent
#EF385D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1272

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

Preview Lab → · Contrast checker → · Palette generator →

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