#5A0F5C#5A0F5C

#5A0F5C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.140 H 327.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#5A0F5C
RGBrgb(90, 15, 92)
HSLhsl(298, 72%, 21%)
HSVhsv(298, 84%, 36%)
CMYKcmyk(2.2%, 83.7%, 0%, 63.9%)
CIE-LABlab(21.16, 42.36, -27.42)
CIE-LCHlch(21.16, 50.46, 327.09°)
OKLaboklab(33.89% 0.1172 -0.0762)
OKLCHoklch(33.89% 0.14 327)
XYZxyz(6.3189, 3.2885, 10.4251)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F5C #115C0F
analogous
#330F5C #5A0F5C #5C0F37
triadic
#5A0F5C #5C5A0F #0F5C5A
tetradic
#5A0F5C #5C330F #115C0F #0F375C
square
#5A0F5C #5C330F #115C0F #0F375C
split-complementary
#5A0F5C #375C0F #0F5C33
monochromatic
#1A041A #270627 #5A0F5C #8D1891 #C120C5

Accessibility & contrast

On white

12.67
#5A0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F5C
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F5C#FFFFFF#000000##FFFFFF
##5A0F5C1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#24365A
Tritanopia (blue-blind)
#5D1D36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a0f5c;
/* rgb */ color: rgb(90, 15, 92);
/* oklch */ color: oklch(33.9% 0.140 327.0);
Tailwind
colors: {
  custom: {
    50: '#8c588a',
    500: '#5a0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f5c;
$custom-light: #8c588a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f5c",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 298.442,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33894,
    "c": 0.13976,
    "h": 327
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#5A0F5C
secondary
#349531
accent
#EF393E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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