#5A2096#5A2096

#5A2096 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.178 H 300.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5A2096
RGBrgb(90, 32, 150)
HSLhsl(269, 65%, 36%)
HSVhsv(269, 79%, 59%)
CMYKcmyk(40%, 78.7%, 0%, 41.2%)
CIE-LABlab(27.87, 48.80, -53.56)
CIE-LCHlch(27.87, 72.46, 312.34°)
OKLaboklab(40.03% 0.0908 -0.153)
OKLCHoklch(40.03% 0.178 300.7)
XYZxyz(10.2366, 5.4086, 29.3529)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2096 #5C9620
analogous
#202196 #5A2096 #952096
triadic
#5A2096 #965A20 #20965A
tetradic
#5A2096 #962021 #5C9620 #209695
square
#5A2096 #962021 #5C9620 #209695
split-complementary
#5A2096 #969520 #219620
monochromatic
#1D0A31 #3C1564 #5A2096 #782BC8 #9756DB

Accessibility & contrast

On white

10.09
#5A2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5A2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2096
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2096#FFFFFF#000000##FFFFFF
##5A20961.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#4C3F5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2096;
/* rgb */ color: rgb(90, 32, 150);
/* oklch */ color: oklch(40.0% 0.178 300.7);
Tailwind
colors: {
  custom: {
    50: '#8f62b6',
    500: '#5a2096',
    950: '#000000',
  },
}
SCSS
$custom: #5a2096;
$custom-light: #8f62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2096",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 269.492,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40033,
    "c": 0.17792,
    "h": 300.7
  },
  "luminance": 0.05409
}

Semantic roles & 50–950 ramp

primary
#5A2096
secondary
#8ABE53
accent
#E84095
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A2096

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

Preview Lab → · Contrast checker → · Palette generator →

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