#5A2D90#5A2D90

#5A2D90 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.156 H 300.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5A2D90
RGBrgb(90, 45, 144)
HSLhsl(267, 52%, 37%)
HSVhsv(267, 69%, 56%)
CMYKcmyk(37.5%, 68.7%, 0%, 43.5%)
CIE-LABlab(29.57, 41.07, -47.10)
CIE-LCHlch(29.57, 62.49, 311.09°)
OKLaboklab(41.09% 0.079 -0.1341)
OKLCHoklch(41.09% 0.156 300.5)
XYZxyz(10.1876, 6.0640, 27.0139)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D90 #63902D
analogous
#2D3190 #5A2D90 #8C2D90
triadic
#5A2D90 #905A2D #2D905A
tetradic
#5A2D90 #902D31 #63902D #2D908C
square
#5A2D90 #902D31 #63902D #2D908C
split-complementary
#5A2D90 #908C2D #31902D
monochromatic
#201033 #3D1E61 #5A2D90 #773CBF #9768D0

Accessibility & contrast

On white

9.49
#5A2D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2D90
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D90#FFFFFF#000000##FFFFFF
##5A2D901.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#4E445A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2d90;
/* rgb */ color: rgb(90, 45, 144);
/* oklch */ color: oklch(41.1% 0.156 300.5);
Tailwind
colors: {
  custom: {
    50: '#8d69b1',
    500: '#5a2d90',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d90;
$custom-light: #8d69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d90",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 267.273,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41088,
    "c": 0.15564,
    "h": 300.5
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#5A2D90
secondary
#90B662
accent
#DC4C9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2D90

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

Preview Lab → · Contrast checker → · Palette generator →

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