#5F1268#5F1268

#5F1268 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.149 H 323.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#5F1268
RGBrgb(95, 18, 104)
HSLhsl(294, 70%, 24%)
HSVhsv(294, 83%, 41%)
CMYKcmyk(8.7%, 82.7%, 0%, 59.2%)
CIE-LABlab(23.22, 44.77, -31.98)
CIE-LCHlch(23.22, 55.02, 324.46°)
OKLaboklab(35.79% 0.1197 -0.0894)
OKLCHoklch(35.79% 0.149 323.3)
XYZxyz(7.4341, 3.8654, 13.4486)
Luminance0.0386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1268 #1B6812
analogous
#341268 #5F1268 #681246
triadic
#5F1268 #685F12 #12685F
tetradic
#5F1268 #683412 #1B6812 #124668
square
#5F1268 #683412 #1B6812 #124668
split-complementary
#5F1268 #466812 #126834
monochromatic
#18051A #2F0934 #5F1268 #8F1B9C #BE24D0

Accessibility & contrast

On white

11.84
#5F1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5F1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1268
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1268#FFFFFF#000000##FFFFFF
##5F12681.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#223A66
Tritanopia (blue-blind)
#61233D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1268;
/* rgb */ color: rgb(95, 18, 104);
/* oklch */ color: oklch(35.8% 0.149 323.3);
Tailwind
colors: {
  custom: {
    50: '#905b94',
    500: '#5f1268',
    950: '#000000',
  },
}
SCSS
$custom: #5f1268;
$custom-light: #905b94;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1268",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 293.721,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3579,
    "c": 0.1494,
    "h": 323.3
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#5F1268
secondary
#41A036
accent
#ED3B4D
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1268

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

Preview Lab → · Contrast checker → · Palette generator →

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