#5A0F52#5A0F52

#5A0F52 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.132 H 333.0°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#5A0F52
RGBrgb(90, 15, 82)
HSLhsl(306, 71%, 21%)
HSVhsv(306, 83%, 35%)
CMYKcmyk(0%, 83.3%, 8.9%, 64.7%)
CIE-LABlab(20.54, 40.60, -21.71)
CIE-LCHlch(20.54, 46.04, 331.86°)
OKLaboklab(33.25% 0.1172 -0.0597)
OKLCHoklch(33.25% 0.132 333)
XYZxyz(5.9103, 3.1250, 8.2729)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F52 #0F5A17
analogous
#3C0F5A #5A0F52 #5A0F2C
triadic
#5A0F52 #525A0F #0F525A
tetradic
#5A0F52 #5A3C0F #0F5A17 #0F2C5A
square
#5A0F52 #5A3C0F #0F5A17 #0F2C5A
split-complementary
#5A0F52 #2C5A0F #0F5A3C
monochromatic
#1A0418 #260622 #5A0F52 #8E1882 #C320B2

Accessibility & contrast

On white

12.92
#5A0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F52
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F52#FFFFFF#000000##FFFFFF
##5A0F521.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2B54
Deuteranopia (green-blind)
#293550
Tritanopia (blue-blind)
#5E1830
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0f52;
/* rgb */ color: rgb(90, 15, 82);
/* oklch */ color: oklch(33.2% 0.132 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5a0f52',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f52;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f52",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 306.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33246,
    "c": 0.13155,
    "h": 333
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#5A0F52
secondary
#31943C
accent
#EE4D3A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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