#5F1266#5F1266

#5F1266 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.148 H 324.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#5F1266
RGBrgb(95, 18, 102)
HSLhsl(295, 70%, 24%)
HSVhsv(295, 82%, 40%)
CMYKcmyk(6.9%, 82.4%, 0%, 60%)
CIE-LABlab(23.09, 44.39, -30.89)
CIE-LCHlch(23.09, 54.08, 325.17°)
OKLaboklab(35.65% 0.1199 -0.0862)
OKLCHoklch(35.65% 0.148 324.3)
XYZxyz(7.3337, 3.8253, 12.9199)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1266 #196612
analogous
#351266 #5F1266 #661243
triadic
#5F1266 #665F12 #12665F
tetradic
#5F1266 #663512 #196612 #124366
square
#5F1266 #663512 #196612 #124366
split-complementary
#5F1266 #436612 #126635
monochromatic
#18051A #2F0932 #5F1266 #8F1B9A #C024CE

Accessibility & contrast

On white

11.90
#5F1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1266
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1266#FFFFFF#000000##FFFFFF
##5F12661.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#233A64
Tritanopia (blue-blind)
#61223C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1266;
/* rgb */ color: rgb(95, 18, 102);
/* oklch */ color: oklch(35.6% 0.148 324.3);
Tailwind
colors: {
  custom: {
    50: '#905b92',
    500: '#5f1266',
    950: '#000000',
  },
}
SCSS
$custom: #5f1266;
$custom-light: #905b92;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1266",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 295,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3565,
    "c": 0.14768,
    "h": 324.3
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#5F1266
secondary
#3F9E36
accent
#ED3B4A
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1266

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

Preview Lab → · Contrast checker → · Palette generator →

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