#5A2D9D#5A2D9D

#5A2D9D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.171 H 296.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5A2D9D
RGBrgb(90, 45, 157)
HSLhsl(264, 55%, 40%)
HSVhsv(264, 71%, 62%)
CMYKcmyk(42.7%, 71.3%, 0%, 38.4%)
CIE-LABlab(30.60, 44.54, -53.38)
CIE-LCHlch(30.60, 69.52, 309.84°)
OKLaboklab(42.15% 0.0769 -0.1526)
OKLCHoklch(42.15% 0.171 296.7)
XYZxyz(11.2390, 6.4845, 32.5512)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D9D #709D2D
analogous
#2D389D #5A2D9D #922D9D
triadic
#5A2D9D #9D5A2D #2D9D5A
tetradic
#5A2D9D #9D2D38 #709D2D #2D9D92
square
#5A2D9D #9D2D38 #709D2D #2D9D92
split-complementary
#5A2D9D #9D922D #389D2D
monochromatic
#23123E #3F1F6D #5A2D9D #763FC8 #986FD6

Accessibility & contrast

On white

9.14
#5A2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5A2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D9D
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D9D#FFFFFF#000000##FFFFFF
##5A2D9D1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#494962
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2d9d;
/* rgb */ color: rgb(90, 45, 157);
/* oklch */ color: oklch(42.1% 0.171 296.7);
Tailwind
colors: {
  custom: {
    50: '#8f6abb',
    500: '#5a2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d9d;
$custom-light: #8f6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d9d",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 264.107,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42147,
    "c": 0.17085,
    "h": 296.7
  },
  "luminance": 0.06485
}

Semantic roles & 50–950 ramp

primary
#5A2D9D
secondary
#9BBD69
accent
#DF49A3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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