#5A2D99#5A2D99

#5A2D99 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.166 H 297.8°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5A2D99
RGBrgb(90, 45, 153)
HSLhsl(265, 55%, 39%)
HSVhsv(265, 71%, 60%)
CMYKcmyk(41.2%, 70.6%, 0%, 40%)
CIE-LABlab(30.28, 43.46, -51.47)
CIE-LCHlch(30.28, 67.37, 310.18°)
OKLaboklab(41.82% 0.0776 -0.147)
OKLCHoklch(41.82% 0.166 297.8)
XYZxyz(10.9031, 6.3502, 30.7821)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2D99 #6C992D
analogous
#2D3699 #5A2D99 #902D99
triadic
#5A2D99 #995A2D #2D995A
tetradic
#5A2D99 #992D36 #6C992D #2D9990
square
#5A2D99 #992D36 #6C992D #2D9990
split-complementary
#5A2D99 #99902D #36992D
monochromatic
#22113A #3E1F6A #5A2D99 #763DC6 #986CD4

Accessibility & contrast

On white

9.25
#5A2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2D99
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2D99#FFFFFF#000000##FFFFFF
##5A2D991.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#4A475F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2d99;
/* rgb */ color: rgb(90, 45, 153);
/* oklch */ color: oklch(41.8% 0.166 297.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ab8',
    500: '#5a2d99',
    950: '#000000',
  },
}
SCSS
$custom: #5a2d99;
$custom-light: #8e6ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2d99",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 265,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41815,
    "c": 0.1662,
    "h": 297.8
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#5A2D99
secondary
#98BB67
accent
#DE4AA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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