#5A2B91#5A2B91

#5A2B91 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.159 H 300.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5A2B91
RGBrgb(90, 43, 145)
HSLhsl(268, 54%, 37%)
HSVhsv(268, 70%, 57%)
CMYKcmyk(37.9%, 70.3%, 0%, 43.1%)
CIE-LABlab(29.28, 42.38, -48.20)
CIE-LCHlch(29.28, 64.18, 311.32°)
OKLaboklab(40.9% 0.0811 -0.1373)
OKLCHoklch(40.9% 0.159 300.5)
XYZxyz(10.1899, 5.9457, 27.3934)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B91 #62912B
analogous
#2B2F91 #5A2B91 #8D2B91
triadic
#5A2B91 #915A2B #2B915A
tetradic
#5A2B91 #912B2F #62912B #2B918D
square
#5A2B91 #912B2F #62912B #2B918D
split-complementary
#5A2B91 #918D2B #2F912B
monochromatic
#1F0F33 #3D1D62 #5A2B91 #7739C0 #9765D1

Accessibility & contrast

On white

9.59
#5A2B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A2B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B91
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B91#FFFFFF#000000##FFFFFF
##5A2B911.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2b91;
/* rgb */ color: rgb(90, 43, 145);
/* oklch */ color: oklch(40.9% 0.159 300.5);
Tailwind
colors: {
  custom: {
    50: '#8d68b2',
    500: '#5a2b91',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b91;
$custom-light: #8d68b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b91",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 145
  },
  "hsl": {
    "h": 267.647,
    "s": 54.255,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40899,
    "c": 0.15948,
    "h": 300.5
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#5A2B91
secondary
#8FB860
accent
#DE4A9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2B91

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

Preview Lab → · Contrast checker → · Palette generator →

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