#5A229B#5A229B

#5A229B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.181 H 298.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5A229B
RGBrgb(90, 34, 155)
HSLhsl(268, 64%, 37%)
HSVhsv(268, 78%, 61%)
CMYKcmyk(41.9%, 78.1%, 0%, 39.2%)
CIE-LABlab(28.60, 49.21, -55.43)
CIE-LCHlch(28.60, 74.12, 311.60°)
OKLaboklab(40.68% 0.0877 -0.1585)
OKLCHoklch(40.68% 0.181 298.9)
XYZxyz(10.7034, 5.6841, 31.5372)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A229B #639B22
analogous
#22269B #5A229B #97229B
triadic
#5A229B #9B5A22 #229B5A
tetradic
#5A229B #9B2226 #639B22 #229B97
square
#5A229B #9B2226 #639B22 #229B97
split-complementary
#5A229B #9B9722 #269B22
monochromatic
#200C37 #3D1769 #5A229B #772DCD #975CDB

Accessibility & contrast

On white

9.83
#5A229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A229B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A229B#FFFFFF#000000##FFFFFF
##5A229B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#4A425E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a229b;
/* rgb */ color: rgb(90, 34, 155);
/* oklch */ color: oklch(40.7% 0.181 298.9);
Tailwind
colors: {
  custom: {
    50: '#8f64b9',
    500: '#5a229b',
    950: '#000000',
  },
}
SCSS
$custom: #5a229b;
$custom-light: #8f64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a229b",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 267.769,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40681,
    "c": 0.18115,
    "h": 298.9
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#5A229B
secondary
#90C059
accent
#E7419A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A229B

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

Preview Lab → · Contrast checker → · Palette generator →

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