#5F1A74#5F1A74

#5F1A74 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.152 H 316.9°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5F1A74
RGBrgb(95, 26, 116)
HSLhsl(286, 63%, 28%)
HSVhsv(286, 78%, 45%)
CMYKcmyk(18.1%, 77.6%, 0%, 54.5%)
CIE-LABlab(25.05, 44.34, -36.79)
CIE-LCHlch(25.05, 57.61, 320.32°)
OKLaboklab(37.36% 0.1108 -0.1035)
OKLCHoklch(37.36% 0.152 316.9)
XYZxyz(8.2406, 4.4330, 16.9412)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A74 #2F741A
analogous
#321A74 #5F1A74 #741A5C
triadic
#5F1A74 #745F1A #1A745F
tetradic
#5F1A74 #74321A #2F741A #1A5C74
square
#5F1A74 #74321A #2F741A #1A5C74
split-complementary
#5F1A74 #5C741A #1A7432
monochromatic
#140619 #360F42 #5F1A74 #8825A6 #AE36D2

Accessibility & contrast

On white

11.13
#5F1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1A74
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A74#FFFFFF#000000##FFFFFF
##5F1A741.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#1B3D72
Tritanopia (blue-blind)
#5E2D46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1a74;
/* rgb */ color: rgb(95, 26, 116);
/* oklch */ color: oklch(37.4% 0.152 316.9);
Tailwind
colors: {
  custom: {
    50: '#905f9d',
    500: '#5f1a74',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a74;
$custom-light: #905f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a74",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 286,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.15163,
    "h": 316.9
  },
  "luminance": 0.04433
}

Semantic roles & 50–950 ramp

primary
#5F1A74
secondary
#59A941
accent
#E64168
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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