#5A2C91#5A2C91

#5A2C91 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.158 H 300.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5A2C91
RGBrgb(90, 44, 145)
HSLhsl(267, 53%, 37%)
HSVhsv(267, 70%, 57%)
CMYKcmyk(37.9%, 69.7%, 0%, 43.1%)
CIE-LABlab(29.46, 41.86, -47.90)
CIE-LCHlch(29.46, 63.61, 311.15°)
OKLaboklab(41.03% 0.08 -0.1365)
OKLCHoklch(41.03% 0.158 300.4)
XYZxyz(10.2267, 6.0193, 27.4056)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C91 #63912C
analogous
#2C3091 #5A2C91 #8D2C91
triadic
#5A2C91 #915A2C #2C915A
tetradic
#5A2C91 #912C30 #63912C #2C918D
square
#5A2C91 #912C30 #63912C #2C918D
split-complementary
#5A2C91 #918D2C #30912C
monochromatic
#201033 #3D1E62 #5A2C91 #773AC0 #9767D1

Accessibility & contrast

On white

9.53
#5A2C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A2C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C91
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C91#FFFFFF#000000##FFFFFF
##5A2C911.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#4E445B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2c91;
/* rgb */ color: rgb(90, 44, 145);
/* oklch */ color: oklch(41.0% 0.158 300.4);
Tailwind
colors: {
  custom: {
    50: '#8d69b2',
    500: '#5a2c91',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c91;
$custom-light: #8d69b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c91",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 267.327,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.15816,
    "h": 300.4
  },
  "luminance": 0.06019
}

Semantic roles & 50–950 ramp

primary
#5A2C91
secondary
#90B762
accent
#DD4B9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2C91

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

Preview Lab → · Contrast checker → · Palette generator →

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