#5A2D9E#5A2D9E

#5A2D9E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.172 H 296.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5A2D9E
RGBrgb(90, 45, 158)
HSLhsl(264, 56%, 40%)
HSVhsv(264, 72%, 62%)
CMYKcmyk(43%, 71.5%, 0%, 38%)
CIE-LABlab(30.69, 44.81, -53.85)
CIE-LCHlch(30.69, 70.06, 309.76°)
OKLaboklab(42.23% 0.0767 -0.154)
OKLCHoklch(42.23% 0.172 296.5)
XYZxyz(11.3248, 6.5188, 33.0027)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D9E #719E2D
analogous
#2D389E #5A2D9E #932D9E
triadic
#5A2D9E #9E5A2D #2D9E5A
tetradic
#5A2D9E #9E2D38 #719E2D #2D9E93
square
#5A2D9E #9E2D38 #719E2D #2D9E93
split-complementary
#5A2D9E #9E932D #389E2D
monochromatic
#24123F #3F1F6E #5A2D9E #7640C9 #986FD6

Accessibility & contrast

On white

9.12
#5A2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2D9E
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D9E#FFFFFF#000000##FFFFFF
##5A2D9E1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#484962
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2d9e;
/* rgb */ color: rgb(90, 45, 158);
/* oklch */ color: oklch(42.2% 0.172 296.5);
Tailwind
colors: {
  custom: {
    50: '#8f6abc',
    500: '#5a2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d9e;
$custom-light: #8f6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d9e",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 263.894,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42231,
    "c": 0.17202,
    "h": 296.5
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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