#5A0F5B#5A0F5B

#5A0F5B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.139 H 327.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#5A0F5B
RGBrgb(90, 15, 91)
HSLhsl(299, 72%, 21%)
HSVhsv(299, 84%, 36%)
CMYKcmyk(1.1%, 83.5%, 0%, 64.3%)
CIE-LABlab(21.10, 42.18, -26.86)
CIE-LCHlch(21.10, 50.01, 327.51°)
OKLaboklab(33.83% 0.1172 -0.0746)
OKLCHoklch(33.83% 0.139 327.5)
XYZxyz(6.2755, 3.2711, 10.1964)
Luminance0.0327 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F5B #105B0F
analogous
#340F5B #5A0F5B #5B0F36
triadic
#5A0F5B #5B5A0F #0F5B5A
tetradic
#5A0F5B #5B340F #105B0F #0F365B
square
#5A0F5B #5B340F #105B0F #0F365B
split-complementary
#5A0F5B #365B0F #0F5B34
monochromatic
#1A041A #260626 #5A0F5B #8E1890 #C220C4

Accessibility & contrast

On white

12.69
#5A0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A0F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F5B
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F5B#FFFFFF#000000##FFFFFF
##5A0F5B1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#243659
Tritanopia (blue-blind)
#5D1C35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a0f5b;
/* rgb */ color: rgb(90, 15, 91);
/* oklch */ color: oklch(33.8% 0.139 327.5);
Tailwind
colors: {
  custom: {
    50: '#8c588a',
    500: '#5a0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f5b;
$custom-light: #8c588a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f5b",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 299.211,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33827,
    "c": 0.13892,
    "h": 327.5
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#5A0F5B
secondary
#339531
accent
#EE393C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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