#5A0F8E#5A0F8E

#5A0F8E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.184 H 304.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5A0F8E
RGBrgb(90, 15, 142)
HSLhsl(275, 81%, 31%)
HSVhsv(275, 89%, 56%)
CMYKcmyk(36.6%, 89.4%, 0%, 44.3%)
CIE-LABlab(25.16, 52.72, -53.05)
CIE-LCHlch(25.16, 74.78, 314.82°)
OKLaboklab(37.94% 0.1054 -0.1514)
OKLCHoklch(37.94% 0.184 304.9)
XYZxyz(9.2686, 4.4683, 25.9601)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F8E #438E0F
analogous
#1A0F8E #5A0F8E #8E0F82
triadic
#5A0F8E #8E5A0F #0F8E5A
tetradic
#5A0F8E #8E1A0F #438E0F #0F828E
square
#5A0F8E #8E1A0F #438E0F #0F828E
split-complementary
#5A0F8E #828E0F #0F8E1A
monochromatic
#14031F #370957 #5A0F8E #7D15C5 #9D2EE9

Accessibility & contrast

On white

11.09
#5A0F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A0F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F8E
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F8E#FFFFFF#000000##FFFFFF
##5A0F8E1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#503653
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a0f8e;
/* rgb */ color: rgb(90, 15, 142);
/* oklch */ color: oklch(37.9% 0.184 304.9);
Tailwind
colors: {
  custom: {
    50: '#8f5bb0',
    500: '#5a0f8e',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f8e;
$custom-light: #8f5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f8e",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 142
  },
  "hsl": {
    "h": 275.433,
    "s": 80.892,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37936,
    "c": 0.18446,
    "h": 304.9
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#5A0F8E
secondary
#70C336
accent
#F73182
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0411
muted
#7E7980

Preview Lab

Preview with #5A0F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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