#5A2B95#5A2B95

#5A2B95 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.164 H 299.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5A2B95
RGBrgb(90, 43, 149)
HSLhsl(267, 55%, 38%)
HSVhsv(267, 71%, 58%)
CMYKcmyk(39.6%, 71.1%, 0%, 41.6%)
CIE-LABlab(29.59, 43.43, -50.14)
CIE-LCHlch(29.59, 66.33, 310.90°)
OKLaboklab(41.22% 0.0804 -0.1431)
OKLCHoklch(41.22% 0.164 299.3)
XYZxyz(10.5038, 6.0712, 29.0464)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B95 #66952B
analogous
#2B3195 #5A2B95 #8F2B95
triadic
#5A2B95 #955A2B #2B955A
tetradic
#5A2B95 #952B31 #66952B #2B958F
square
#5A2B95 #952B31 #66952B #2B958F
split-complementary
#5A2B95 #958F2B #31952B
monochromatic
#211036 #3D1D66 #5A2B95 #7739C4 #9767D3

Accessibility & contrast

On white

9.48
#5A2B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A2B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B95
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B95#FFFFFF#000000##FFFFFF
##5A2B951.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#4C455D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2b95;
/* rgb */ color: rgb(90, 43, 149);
/* oklch */ color: oklch(41.2% 0.164 299.3);
Tailwind
colors: {
  custom: {
    50: '#8e68b5',
    500: '#5a2b95',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b95;
$custom-light: #8e68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b95",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 266.604,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41224,
    "c": 0.1641,
    "h": 299.3
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#5A2B95
secondary
#93BA62
accent
#DF499C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2B95

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

Preview Lab → · Contrast checker → · Palette generator →

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