#5A229E#5A229E

#5A229E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.184 H 298.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5A229E
RGBrgb(90, 34, 158)
HSLhsl(267, 65%, 38%)
HSVhsv(267, 78%, 62%)
CMYKcmyk(43%, 78.5%, 0%, 38%)
CIE-LABlab(28.87, 49.96, -56.82)
CIE-LCHlch(28.87, 75.67, 311.32°)
OKLaboklab(40.95% 0.0868 -0.1626)
OKLCHoklch(40.95% 0.184 298.1)
XYZxyz(10.9584, 5.7862, 32.8806)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A229E #669E22
analogous
#22289E #5A229E #98229E
triadic
#5A229E #9E5A22 #229E5A
tetradic
#5A229E #9E2228 #669E22 #229E98
square
#5A229E #9E2228 #669E22 #229E98
split-complementary
#5A229E #9E9822 #289E22
monochromatic
#210C39 #3D176C #5A229E #772DD0 #975EDC

Accessibility & contrast

On white

9.73
#5A229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5A229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A229E
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A229E#FFFFFF#000000##FFFFFF
##5A229E1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#49445F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a229e;
/* rgb */ color: rgb(90, 34, 158);
/* oklch */ color: oklch(40.9% 0.184 298.1);
Tailwind
colors: {
  custom: {
    50: '#9064bc',
    500: '#5a229e',
    950: '#000000',
  },
}
SCSS
$custom: #5a229e;
$custom-light: #9064bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a229e",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 267.097,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40948,
    "c": 0.18435,
    "h": 298.1
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#5A229E
secondary
#93C15B
accent
#E8409C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A229E

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

Preview Lab → · Contrast checker → · Palette generator →

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