#5A2E93#5A2E93

#5A2E93 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.158 H 299.4°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5A2E93
RGBrgb(90, 46, 147)
HSLhsl(266, 52%, 38%)
HSVhsv(266, 69%, 58%)
CMYKcmyk(38.8%, 68.7%, 0%, 42.4%)
CIE-LABlab(30.00, 41.34, -48.26)
CIE-LCHlch(30.00, 63.54, 310.58°)
OKLaboklab(41.46% 0.0775 -0.1375)
OKLCHoklch(41.46% 0.158 299.4)
XYZxyz(10.4586, 6.2341, 28.2504)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E93 #67932E
analogous
#2E3493 #5A2E93 #8D2E93
triadic
#5A2E93 #935A2E #2E935A
tetradic
#5A2E93 #932E34 #67932E #2E938D
square
#5A2E93 #932E34 #67932E #2E938D
split-complementary
#5A2E93 #938D2E #34932E
monochromatic
#211136 #3D1F64 #5A2E93 #773DC2 #976BD1

Accessibility & contrast

On white

9.35
#5A2E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A2E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E93
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E93#FFFFFF#000000##FFFFFF
##5A2E931.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004796
Deuteranopia (green-blind)
#004691
Tritanopia (blue-blind)
#4D465C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2e93;
/* rgb */ color: rgb(90, 46, 147);
/* oklch */ color: oklch(41.5% 0.158 299.4);
Tailwind
colors: {
  custom: {
    50: '#8d6ab3',
    500: '#5a2e93',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e93;
$custom-light: #8d6ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e93",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 147
  },
  "hsl": {
    "h": 266.139,
    "s": 52.332,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41463,
    "c": 0.15784,
    "h": 299.4
  },
  "luminance": 0.06234
}

Semantic roles & 50–950 ramp

primary
#5A2E93
secondary
#94B865
accent
#DC4C9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2E93

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

Preview Lab → · Contrast checker → · Palette generator →

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