#5A0F5A#5A0F5A

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

Color values

HEX#5A0F5A
RGBrgb(90, 15, 90)
HSLhsl(300, 71%, 21%)
HSVhsv(300, 83%, 35%)
CMYKcmyk(0%, 83.3%, 0%, 64.7%)
CIE-LABlab(21.03, 42.00, -26.30)
CIE-LCHlch(21.03, 49.55, 327.95°)
OKLaboklab(33.76% 0.1172 -0.0729)
OKLCHoklch(33.76% 0.138 328.1)
XYZxyz(6.2327, 3.2540, 9.9707)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F5A #0F5A0F
analogous
#340F5A #5A0F5A #5A0F34
triadic
#5A0F5A #5A5A0F #0F5A5A
tetradic
#5A0F5A #5A340F #0F5A0F #0F345A
square
#5A0F5A #5A340F #0F5A0F #0F345A
split-complementary
#5A0F5A #345A0F #0F5A34
monochromatic
#1A041A #260626 #5A0F5A #8E188E #C320C3

Accessibility & contrast

On white

12.72
#5A0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F5A
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F5A#FFFFFF#000000##FFFFFF
##5A0F5A1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#253658
Tritanopia (blue-blind)
#5D1C34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a0f5a;
/* rgb */ color: rgb(90, 15, 90);
/* oklch */ color: oklch(33.8% 0.138 328.1);
Tailwind
colors: {
  custom: {
    50: '#8c5889',
    500: '#5a0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f5a;
$custom-light: #8c5889;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f5a",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3376,
    "c": 0.13808,
    "h": 328.1
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#5A0F5A
secondary
#319431
accent
#EE3A3A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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