#5A0F4F#5A0F4F

#5A0F4F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.129 H 335.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#5A0F4F
RGBrgb(90, 15, 79)
HSLhsl(309, 71%, 21%)
HSVhsv(309, 83%, 35%)
CMYKcmyk(0%, 83.3%, 12.2%, 64.7%)
CIE-LABlab(20.36, 40.10, -19.96)
CIE-LCHlch(20.36, 44.79, 333.54°)
OKLaboklab(33.06% 0.1171 -0.0546)
OKLCHoklch(33.06% 0.129 335)
XYZxyz(5.7986, 3.0803, 7.6848)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F4F #0F5A1A
analogous
#3F0F5A #5A0F4F #5A0F29
triadic
#5A0F4F #4F5A0F #0F4F5A
tetradic
#5A0F4F #5A3F0F #0F5A1A #0F295A
square
#5A0F4F #5A3F0F #0F5A1A #0F295A
split-complementary
#5A0F4F #295A0F #0F5A3F
monochromatic
#1A0417 #260621 #5A0F4F #8E187D #C320AB

Accessibility & contrast

On white

13.00
#5A0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F4F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F4F#FFFFFF#000000##FFFFFF
##5A0F4F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2A51
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#5F162E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0f4f;
/* rgb */ color: rgb(90, 15, 79);
/* oklch */ color: oklch(33.1% 0.129 335.0);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5a0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f4f;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f4f",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 308.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33064,
    "c": 0.12919,
    "h": 335
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#5A0F4F
secondary
#319440
accent
#EE543A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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