#5A0F53#5A0F53

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

Color values

HEX#5A0F53
RGBrgb(90, 15, 83)
HSLhsl(306, 71%, 21%)
HSVhsv(306, 83%, 35%)
CMYKcmyk(0%, 83.3%, 7.8%, 64.7%)
CIE-LABlab(20.60, 40.77, -22.29)
CIE-LCHlch(20.60, 46.47, 331.33°)
OKLaboklab(33.31% 0.1173 -0.0613)
OKLCHoklch(33.31% 0.132 332.4)
XYZxyz(5.9486, 3.1403, 8.4748)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F53 #0F5A16
analogous
#3B0F5A #5A0F53 #5A0F2D
triadic
#5A0F53 #535A0F #0F535A
tetradic
#5A0F53 #5A3B0F #0F5A16 #0F2D5A
square
#5A0F53 #5A3B0F #0F5A16 #0F2D5A
split-complementary
#5A0F53 #2D5A0F #0F5A3B
monochromatic
#1A0418 #260623 #5A0F53 #8E1883 #C320B4

Accessibility & contrast

On white

12.90
#5A0F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F53
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F53#FFFFFF#000000##FFFFFF
##5A0F531.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092B55
Deuteranopia (green-blind)
#293551
Tritanopia (blue-blind)
#5E1830
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a0f53;
/* rgb */ color: rgb(90, 15, 83);
/* oklch */ color: oklch(33.3% 0.132 332.4);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5a0f53',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f53;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f53",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 305.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33308,
    "c": 0.13234,
    "h": 332.4
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#5A0F53
secondary
#31943A
accent
#EE4A3A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0F53

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

Preview Lab → · Contrast checker → · Palette generator →

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