#5A2E8D#5A2E8D

#5A2E8D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.151 H 301.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5A2E8D
RGBrgb(90, 46, 141)
HSLhsl(268, 51%, 37%)
HSVhsv(268, 67%, 55%)
CMYKcmyk(36.2%, 67.4%, 0%, 44.7%)
CIE-LABlab(29.54, 39.75, -45.30)
CIE-LCHlch(29.54, 60.27, 311.27°)
OKLaboklab(40.99% 0.0782 -0.1288)
OKLCHoklch(40.99% 0.151 301.3)
XYZxyz(10.0000, 6.0507, 25.8352)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E8D #618D2E
analogous
#2E328D #5A2E8D #8A2E8D
triadic
#5A2E8D #8D5A2E #2E8D5A
tetradic
#5A2E8D #8D2E32 #618D2E #2E8D8A
square
#5A2E8D #8D2E32 #618D2E #2E8D8A
split-complementary
#5A2E8D #8D8A2E #328D2E
monochromatic
#1F1031 #3D1F5F #5A2E8D #773DBB #9768CE

Accessibility & contrast

On white

9.50
#5A2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2E8D
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E8D#FFFFFF#000000##FFFFFF
##5A2E8D1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#01458B
Tritanopia (blue-blind)
#4F4359
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2e8d;
/* rgb */ color: rgb(90, 46, 141);
/* oklch */ color: oklch(41.0% 0.151 301.3);
Tailwind
colors: {
  custom: {
    50: '#8d6aaf',
    500: '#5a2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e8d;
$custom-light: #8d6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e8d",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 267.789,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40992,
    "c": 0.1507,
    "h": 301.3
  },
  "luminance": 0.06051
}

Semantic roles & 50–950 ramp

primary
#5A2E8D
secondary
#8EB562
accent
#DA4E99
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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