#5F1276#5F1276

#5F1276 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.162 H 316.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5F1276
RGBrgb(95, 18, 118)
HSLhsl(286, 74%, 27%)
HSVhsv(286, 85%, 46%)
CMYKcmyk(19.5%, 84.7%, 0%, 53.7%)
CIE-LABlab(24.24, 47.54, -39.38)
CIE-LCHlch(24.24, 61.73, 320.36°)
OKLaboklab(36.83% 0.1176 -0.1111)
OKLCHoklch(36.83% 0.162 316.6)
XYZxyz(8.2051, 4.1739, 17.5095)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1276 #297612
analogous
#2D1276 #5F1276 #76125B
triadic
#5F1276 #765F12 #12765F
tetradic
#5F1276 #762D12 #297612 #125B76
square
#5F1276 #762D12 #297612 #125B76
split-complementary
#5F1276 #5B7612 #12762D
monochromatic
#15041B #340A41 #5F1276 #8A1AAB #B325DE

Accessibility & contrast

On white

11.45
#5F1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1276
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1276#FFFFFF#000000##FFFFFF
##5F12761.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#123C74
Tritanopia (blue-blind)
#5E2A45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1276;
/* rgb */ color: rgb(95, 18, 118);
/* oklch */ color: oklch(36.8% 0.162 316.6);
Tailwind
colors: {
  custom: {
    50: '#905c9e',
    500: '#5f1276',
    950: '#000000',
  },
}
SCSS
$custom: #5f1276;
$custom-light: #905c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1276",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 286.2,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.16174,
    "h": 316.6
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#5F1276
secondary
#52AD37
accent
#F03862
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1276

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

Preview Lab → · Contrast checker → · Palette generator →

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