#5A229F#5A229F

#5A229F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.185 H 297.8°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5A229F
RGBrgb(90, 34, 159)
HSLhsl(267, 65%, 38%)
HSVhsv(267, 79%, 62%)
CMYKcmyk(43.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(28.96, 50.22, -57.29)
CIE-LCHlch(28.96, 76.18, 311.24°)
OKLaboklab(41.04% 0.0865 -0.164)
OKLCHoklch(41.04% 0.185 297.8)
XYZxyz(11.0449, 5.8207, 33.3358)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A229F #679F22
analogous
#22289F #5A229F #98229F
triadic
#5A229F #9F5A22 #229F5A
tetradic
#5A229F #9F2228 #679F22 #229F98
square
#5A229F #9F2228 #679F22 #229F98
split-complementary
#5A229F #9F9822 #289F22
monochromatic
#210C3A #3D176D #5A229F #772DD1 #975FDD

Accessibility & contrast

On white

9.70
#5A229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A229F
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A229F#FFFFFF#000000##FFFFFF
##5A229F1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#484460
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a229f;
/* rgb */ color: rgb(90, 34, 159);
/* oklch */ color: oklch(41.0% 0.185 297.8);
Tailwind
colors: {
  custom: {
    50: '#9064bc',
    500: '#5a229f',
    950: '#000000',
  },
}
SCSS
$custom: #5a229f;
$custom-light: #9064bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a229f",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 266.88,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41038,
    "c": 0.18542,
    "h": 297.8
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#5A229F
secondary
#94C15B
accent
#E8409D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A229F

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

Preview Lab → · Contrast checker → · Palette generator →

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