#5A2C90#5A2C90

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

Color values

HEX#5A2C90
RGBrgb(90, 44, 144)
HSLhsl(268, 53%, 37%)
HSVhsv(268, 69%, 56%)
CMYKcmyk(37.5%, 69.4%, 0%, 43.5%)
CIE-LABlab(29.38, 41.60, -47.40)
CIE-LCHlch(29.38, 63.07, 311.27°)
OKLaboklab(40.95% 0.0801 -0.135)
OKLCHoklch(40.95% 0.157 300.7)
XYZxyz(10.1499, 5.9886, 27.0013)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C90 #62902C
analogous
#2C3090 #5A2C90 #8C2C90
triadic
#5A2C90 #905A2C #2C905A
tetradic
#5A2C90 #902C30 #62902C #2C908C
square
#5A2C90 #902C30 #62902C #2C908C
split-complementary
#5A2C90 #908C2C #30902C
monochromatic
#1F0F32 #3D1E61 #5A2C90 #773ABF #9766D0

Accessibility & contrast

On white

9.56
#5A2C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2C90
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C90#FFFFFF#000000##FFFFFF
##5A2C901.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#4E435A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2c90;
/* rgb */ color: rgb(90, 44, 144);
/* oklch */ color: oklch(41.0% 0.157 300.7);
Tailwind
colors: {
  custom: {
    50: '#8d69b1',
    500: '#5a2c90',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c90;
$custom-light: #8d69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c90",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 144
  },
  "hsl": {
    "h": 267.6,
    "s": 53.191,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40952,
    "c": 0.15699,
    "h": 300.7
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#5A2C90
secondary
#8FB761
accent
#DD4B9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2C90

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

Preview Lab → · Contrast checker → · Palette generator →

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