#5A0F68#5A0F68

#5A0F68 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.150 H 320.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5A0F68
RGBrgb(90, 15, 104)
HSLhsl(291, 75%, 23%)
HSVhsv(291, 86%, 41%)
CMYKcmyk(13.5%, 85.6%, 0%, 59.2%)
CIE-LABlab(22.00, 44.65, -33.99)
CIE-LCHlch(22.00, 56.11, 322.72°)
OKLaboklab(34.75% 0.1159 -0.0954)
OKLCHoklch(34.75% 0.15 320.5)
XYZxyz(6.8857, 3.5152, 13.4098)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F68 #1D680F
analogous
#2D0F68 #5A0F68 #680F49
triadic
#5A0F68 #685A0F #0F685A
tetradic
#5A0F68 #682D0F #1D680F #0F4968
square
#5A0F68 #682D0F #1D680F #0F4968
split-complementary
#5A0F68 #49680F #0F682D
monochromatic
#17041B #2C0733 #5A0F68 #88179D #B71ED3

Accessibility & contrast

On white

12.33
#5A0F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A0F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F68
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F68#FFFFFF#000000##FFFFFF
##5A0F681.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#1A3766
Tritanopia (blue-blind)
#5A233C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a0f68;
/* rgb */ color: rgb(90, 15, 104);
/* oklch */ color: oklch(34.8% 0.150 320.5);
Tailwind
colors: {
  custom: {
    50: '#8c5994',
    500: '#5a0f68',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f68;
$custom-light: #8c5994;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f68",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 290.562,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.1501,
    "h": 320.5
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#5A0F68
secondary
#44A132
accent
#F13654
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A0F68

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

Preview Lab → · Contrast checker → · Palette generator →

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