#5A2291#5A2291

#5A2291 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.170 H 302.0°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5A2291
RGBrgb(90, 34, 145)
HSLhsl(270, 62%, 35%)
HSVhsv(270, 77%, 57%)
CMYKcmyk(37.9%, 76.6%, 0%, 43.1%)
CIE-LABlab(27.74, 46.69, -50.69)
CIE-LCHlch(27.74, 68.92, 312.65°)
OKLaboklab(39.81% 0.0902 -0.1446)
OKLCHoklch(39.81% 0.17 302)
XYZxyz(9.8981, 5.3620, 27.2961)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2291 #599122
analogous
#222291 #5A2291 #912291
triadic
#5A2291 #915A22 #22915A
tetradic
#5A2291 #912222 #599122 #229191
square
#5A2291 #912222 #599122 #229191
split-complementary
#5A2291 #919122 #229122
monochromatic
#1C0B2E #3B165F #5A2291 #792EC3 #9756D7

Accessibility & contrast

On white

10.13
#5A2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2291
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2291#FFFFFF#000000##FFFFFF
##5A22911.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#4E3E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2291;
/* rgb */ color: rgb(90, 34, 145);
/* oklch */ color: oklch(39.8% 0.170 302.0);
Tailwind
colors: {
  custom: {
    50: '#8e63b2',
    500: '#5a2291',
    950: '#000000',
  },
}
SCSS
$custom: #5a2291;
$custom-light: #8e63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2291",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 270.27,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39812,
    "c": 0.17045,
    "h": 302
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#5A2291
secondary
#87BB53
accent
#E54393
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2291

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

Preview Lab → · Contrast checker → · Palette generator →

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