#5A0F6A#5A0F6A

#5A0F6A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.152 H 319.5°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5A0F6A
RGBrgb(90, 15, 106)
HSLhsl(289, 75%, 24%)
HSVhsv(289, 86%, 42%)
CMYKcmyk(15.1%, 85.8%, 0%, 58.4%)
CIE-LABlab(22.15, 45.04, -35.06)
CIE-LCHlch(22.15, 57.08, 322.11°)
OKLaboklab(34.9% 0.1155 -0.0985)
OKLCHoklch(34.9% 0.152 319.5)
XYZxyz(6.9885, 3.5563, 13.9512)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F6A #1F6A0F
analogous
#2C0F6A #5A0F6A #6A0F4C
triadic
#5A0F6A #6A5A0F #0F6A5A
tetradic
#5A0F6A #6A2C0F #1F6A0F #0F4C6A
square
#5A0F6A #6A2C0F #1F6A0F #0F4C6A
split-complementary
#5A0F6A #4C6A0F #0F6A2C
monochromatic
#17041B #2C0734 #5A0F6A #8817A0 #B51ED5

Accessibility & contrast

On white

12.27
#5A0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F6A
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F6A#FFFFFF#000000##FFFFFF
##5A0F6A1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#173768
Tritanopia (blue-blind)
#5A243E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a0f6a;
/* rgb */ color: rgb(90, 15, 106);
/* oklch */ color: oklch(34.9% 0.152 319.5);
Tailwind
colors: {
  custom: {
    50: '#8c5995',
    500: '#5a0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f6a;
$custom-light: #8c5995;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f6a",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 289.451,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34902,
    "c": 0.15185,
    "h": 319.5
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#5A0F6A
secondary
#46A232
accent
#F23657
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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