#5A2D9F#5A2D9F

#5A2D9F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.173 H 296.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5A2D9F
RGBrgb(90, 45, 159)
HSLhsl(264, 56%, 40%)
HSVhsv(264, 72%, 62%)
CMYKcmyk(43.4%, 71.7%, 0%, 37.6%)
CIE-LABlab(30.77, 45.08, -54.33)
CIE-LCHlch(30.77, 70.59, 309.68°)
OKLaboklab(42.32% 0.0765 -0.1554)
OKLCHoklch(42.32% 0.173 296.2)
XYZxyz(11.4112, 6.5534, 33.4579)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D9F #729F2D
analogous
#2D399F #5A2D9F #932D9F
triadic
#5A2D9F #9F5A2D #2D9F5A
tetradic
#5A2D9F #9F2D39 #729F2D #2D9F93
square
#5A2D9F #9F2D39 #729F2D #2D9F93
split-complementary
#5A2D9F #9F932D #399F2D
monochromatic
#241240 #3F206F #5A2D9F #7640C9 #9870D6

Accessibility & contrast

On white

9.09
#5A2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D9F
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D9F#FFFFFF#000000##FFFFFF
##5A2D9F1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#484A63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2d9f;
/* rgb */ color: rgb(90, 45, 159);
/* oklch */ color: oklch(42.3% 0.173 296.2);
Tailwind
colors: {
  custom: {
    50: '#8f6abc',
    500: '#5a2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d9f;
$custom-light: #8f6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d9f",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 263.684,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.42315,
    "c": 0.17318,
    "h": 296.2
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#5A2D9F
secondary
#9DBE6A
accent
#DF49A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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