#5A0F76#5A0F76

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

Color values

HEX#5A0F76
RGBrgb(90, 15, 118)
HSLhsl(284, 77%, 26%)
HSVhsv(284, 87%, 46%)
CMYKcmyk(23.7%, 87.3%, 0%, 53.7%)
CIE-LABlab(23.08, 47.50, -41.30)
CIE-LCHlch(23.08, 62.94, 318.99°)
OKLaboklab(35.85% 0.113 -0.1169)
OKLCHoklch(35.85% 0.163 314)
XYZxyz(7.6567, 3.8236, 17.4707)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F76 #2B760F
analogous
#260F76 #5A0F76 #760F5E
triadic
#5A0F76 #765A0F #0F765A
tetradic
#5A0F76 #76260F #2B760F #0F5E76
square
#5A0F76 #76260F #2B760F #0F5E76
split-complementary
#5A0F76 #5E760F #0F7626
monochromatic
#15031B #310840 #5A0F76 #8316AC #AD1DE2

Accessibility & contrast

On white

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

On black

1.76
#5A0F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A0F76#FFFFFF#000000##FFFFFF
##5A0F761.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#013974
Tritanopia (blue-blind)
#572A45
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a0f76;
/* rgb */ color: rgb(90, 15, 118);
/* oklch */ color: oklch(35.8% 0.163 314.0);
Tailwind
colors: {
  custom: {
    50: '#8d5a9e',
    500: '#5a0f76',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f76;
$custom-light: #8d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f76",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 283.689,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35849,
    "c": 0.16255,
    "h": 314
  },
  "luminance": 0.03823
}

Semantic roles & 50–950 ramp

primary
#5A0F76
secondary
#55AD33
accent
#F43468
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5A0F76

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

Preview Lab → · Contrast checker → · Palette generator →

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