#5A2D95#5A2D95

#5A2D95 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.162 H 299.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5A2D95
RGBrgb(90, 45, 149)
HSLhsl(266, 54%, 38%)
HSVhsv(266, 70%, 58%)
CMYKcmyk(39.6%, 69.8%, 0%, 41.6%)
CIE-LABlab(29.96, 42.40, -49.54)
CIE-LCHlch(29.96, 65.21, 310.56°)
OKLaboklab(41.49% 0.0783 -0.1413)
OKLCHoklch(41.49% 0.162 299)
XYZxyz(10.5783, 6.2202, 29.0712)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D95 #68952D
analogous
#2D3495 #5A2D95 #8E2D95
triadic
#5A2D95 #955A2D #2D955A
tetradic
#5A2D95 #952D34 #68952D #2D958E
square
#5A2D95 #952D34 #68952D #2D958E
split-complementary
#5A2D95 #958E2D #34952D
monochromatic
#211137 #3E1F66 #5A2D95 #763BC4 #976AD2

Accessibility & contrast

On white

9.36
#5A2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D95
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D95#FFFFFF#000000##FFFFFF
##5A2D951.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#4C465D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2d95;
/* rgb */ color: rgb(90, 45, 149);
/* oklch */ color: oklch(41.5% 0.162 299.0);
Tailwind
colors: {
  custom: {
    50: '#8e69b5',
    500: '#5a2d95',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d95;
$custom-light: #8e69b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d95",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 265.962,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41488,
    "c": 0.16152,
    "h": 299
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#5A2D95
secondary
#95B965
accent
#DD4B9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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