#5A2391#5A2391

#5A2391 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.169 H 301.8°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5A2391
RGBrgb(90, 35, 145)
HSLhsl(270, 61%, 35%)
HSVhsv(270, 76%, 57%)
CMYKcmyk(37.9%, 75.9%, 0%, 43.1%)
CIE-LABlab(27.90, 46.25, -50.43)
CIE-LCHlch(27.90, 68.43, 312.52°)
OKLaboklab(39.92% 0.0893 -0.1439)
OKLCHoklch(39.92% 0.169 301.8)
XYZxyz(9.9271, 5.4200, 27.3057)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2391 #5A9123
analogous
#232391 #5A2391 #912391
triadic
#5A2391 #915A23 #23915A
tetradic
#5A2391 #912323 #5A9123 #239191
square
#5A2391 #912323 #5A9123 #239191
split-complementary
#5A2391 #919123 #239123
monochromatic
#1D0B2E #3B1760 #5A2391 #792FC2 #9758D7

Accessibility & contrast

On white

10.08
#5A2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2391
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2391#FFFFFF#000000##FFFFFF
##5A23911.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2391;
/* rgb */ color: rgb(90, 35, 145);
/* oklch */ color: oklch(39.9% 0.169 301.8);
Tailwind
colors: {
  custom: {
    50: '#8e64b2',
    500: '#5a2391',
    950: '#000000',
  },
}
SCSS
$custom: #5a2391;
$custom-light: #8e64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2391",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 270,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39923,
    "c": 0.16933,
    "h": 301.8
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#5A2391
secondary
#88BB55
accent
#E44494
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2391

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

Preview Lab → · Contrast checker → · Palette generator →

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