#5A2E99#5A2E99

#5A2E99 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.165 H 297.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5A2E99
RGBrgb(90, 46, 153)
HSLhsl(265, 54%, 39%)
HSVhsv(265, 70%, 60%)
CMYKcmyk(41.2%, 69.9%, 0%, 40%)
CIE-LABlab(30.47, 42.95, -51.17)
CIE-LCHlch(30.47, 66.80, 310.01°)
OKLaboklab(41.95% 0.0765 -0.1461)
OKLCHoklch(41.95% 0.165 297.7)
XYZxyz(10.9417, 6.4274, 30.7949)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E99 #6D992E
analogous
#2E3899 #5A2E99 #902E99
triadic
#5A2E99 #995A2E #2E995A
tetradic
#5A2E99 #992E38 #6D992E #2E9990
square
#5A2E99 #992E38 #6D992E #2E9990
split-complementary
#5A2E99 #99902E #38992E
monochromatic
#23123B #3E206A #5A2E99 #763FC5 #986ED3

Accessibility & contrast

On white

9.19
#5A2E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5A2E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E99
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E99#FFFFFF#000000##FFFFFF
##5A2E991.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2e99;
/* rgb */ color: rgb(90, 46, 153);
/* oklch */ color: oklch(41.9% 0.165 297.7);
Tailwind
colors: {
  custom: {
    50: '#8e6ab8',
    500: '#5a2e99',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e99;
$custom-light: #8e6ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e99",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 264.673,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41948,
    "c": 0.16492,
    "h": 297.7
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#5A2E99
secondary
#99BB68
accent
#DD4BA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2E99

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

Preview Lab → · Contrast checker → · Palette generator →

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