#5A2296#5A2296

#5A2296 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.176 H 300.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5A2296
RGBrgb(90, 34, 150)
HSLhsl(269, 63%, 36%)
HSVhsv(269, 77%, 59%)
CMYKcmyk(40%, 77.3%, 0%, 41.2%)
CIE-LABlab(28.17, 47.95, -53.08)
CIE-LCHlch(28.17, 71.53, 312.09°)
OKLaboklab(40.24% 0.089 -0.1516)
OKLCHoklch(40.24% 0.176 300.4)
XYZxyz(10.2921, 5.5196, 29.3714)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2296 #5E9622
analogous
#222496 #5A2296 #942296
triadic
#5A2296 #965A22 #22965A
tetradic
#5A2296 #962224 #5E9622 #229694
square
#5A2296 #962224 #5E9622 #229694
split-complementary
#5A2296 #969422 #249622
monochromatic
#1E0B32 #3C1764 #5A2296 #782DC8 #9759D9

Accessibility & contrast

On white

9.98
#5A2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2296
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2296#FFFFFF#000000##FFFFFF
##5A22961.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#4C405B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2296;
/* rgb */ color: rgb(90, 34, 150);
/* oklch */ color: oklch(40.2% 0.176 300.4);
Tailwind
colors: {
  custom: {
    50: '#8f63b6',
    500: '#5a2296',
    950: '#000000',
  },
}
SCSS
$custom: #5a2296;
$custom-light: #8f63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2296",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 268.966,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40242,
    "c": 0.17581,
    "h": 300.4
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#5A2296
secondary
#8CBE56
accent
#E64297
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2296

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

Preview Lab → · Contrast checker → · Palette generator →

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