#5F1876#5F1876

#5F1876 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.156 H 316.2°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#5F1876
RGBrgb(95, 24, 118)
HSLhsl(285, 66%, 28%)
HSVhsv(285, 80%, 46%)
CMYKcmyk(19.5%, 79.7%, 0%, 53.7%)
CIE-LABlab(24.93, 45.52, -38.26)
CIE-LCHlch(24.93, 59.46, 319.96°)
OKLaboklab(37.32% 0.1124 -0.1078)
OKLCHoklch(37.32% 0.156 316.2)
XYZxyz(8.3155, 4.3945, 17.5462)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1876 #2F7618
analogous
#301876 #5F1876 #76185E
triadic
#5F1876 #765F18 #18765F
tetradic
#5F1876 #763018 #2F7618 #185E76
square
#5F1876 #763018 #2F7618 #185E76
split-complementary
#5F1876 #5E7618 #187630
monochromatic
#140519 #360E43 #5F1876 #8822A9 #AE33D5

Accessibility & contrast

On white

11.18
#5F1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1876
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1876#FFFFFF#000000##FFFFFF
##5F18761.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#173D74
Tritanopia (blue-blind)
#5D2D46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1876;
/* rgb */ color: rgb(95, 24, 118);
/* oklch */ color: oklch(37.3% 0.156 316.2);
Tailwind
colors: {
  custom: {
    50: '#905e9e',
    500: '#5f1876',
    950: '#000000',
  },
}
SCSS
$custom: #5f1876;
$custom-light: #905e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1876",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 285.319,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3732,
    "c": 0.15579,
    "h": 316.2
  },
  "luminance": 0.04394
}

Semantic roles & 50–950 ramp

primary
#5F1876
secondary
#59AB3F
accent
#E93F68
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1876

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

Preview Lab → · Contrast checker → · Palette generator →

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