#5A2E9C#5A2E9C

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

Color values

HEX#5A2E9C
RGBrgb(90, 46, 156)
HSLhsl(264, 54%, 40%)
HSVhsv(264, 71%, 61%)
CMYKcmyk(42.3%, 70.5%, 0%, 38.8%)
CIE-LABlab(30.71, 43.75, -52.60)
CIE-LCHlch(30.71, 68.42, 309.75°)
OKLaboklab(42.2% 0.076 -0.1503)
OKLCHoklch(42.2% 0.168 296.8)
XYZxyz(11.1926, 6.5277, 32.1163)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E9C #709C2E
analogous
#2E399C #5A2E9C #912E9C
triadic
#5A2E9C #9C5A2E #2E9C5A
tetradic
#5A2E9C #9C2E39 #709C2E #2E9C91
square
#5A2E9C #9C2E39 #709C2E #2E9C91
split-complementary
#5A2E9C #9C912E #399C2E
monochromatic
#23123D #3F206D #5A2E9C #7640C7 #9870D5

Accessibility & contrast

On white

9.11
#5A2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2E9C
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E9C#FFFFFF#000000##FFFFFF
##5A2E9C1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#494961
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2e9c;
/* rgb */ color: rgb(90, 46, 156);
/* oklch */ color: oklch(42.2% 0.168 296.8);
Tailwind
colors: {
  custom: {
    50: '#8e6aba',
    500: '#5a2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e9c;
$custom-light: #8e6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e9c",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 264,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42195,
    "c": 0.16845,
    "h": 296.8
  },
  "luminance": 0.06528
}

Semantic roles & 50–950 ramp

primary
#5A2E9C
secondary
#9BBC6A
accent
#DE4AA3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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