#5A2295#5A2295

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

Color values

HEX#5A2295
RGBrgb(90, 34, 149)
HSLhsl(269, 63%, 36%)
HSVhsv(269, 77%, 58%)
CMYKcmyk(39.6%, 77.2%, 0%, 41.6%)
CIE-LABlab(28.08, 47.69, -52.60)
CIE-LCHlch(28.08, 71.01, 312.20°)
OKLaboklab(40.16% 0.0893 -0.1502)
OKLCHoklch(40.16% 0.175 300.7)
XYZxyz(10.2120, 5.4876, 28.9491)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2295 #5D9522
analogous
#222395 #5A2295 #932295
triadic
#5A2295 #955A22 #22955A
tetradic
#5A2295 #952223 #5D9522 #229593
square
#5A2295 #952223 #5D9522 #229593
split-complementary
#5A2295 #959322 #239522
monochromatic
#1E0B31 #3C1763 #5A2295 #782DC7 #9758D9

Accessibility & contrast

On white

10.01
#5A2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2295
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2295#FFFFFF#000000##FFFFFF
##5A22951.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#4D405A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2295;
/* rgb */ color: rgb(90, 34, 149);
/* oklch */ color: oklch(40.2% 0.175 300.7);
Tailwind
colors: {
  custom: {
    50: '#8e63b5',
    500: '#5a2295',
    950: '#000000',
  },
}
SCSS
$custom: #5a2295;
$custom-light: #8e63b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2295",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 269.217,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.17474,
    "h": 300.7
  },
  "luminance": 0.05488
}

Semantic roles & 50–950 ramp

primary
#5A2295
secondary
#8BBD56
accent
#E64296
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2295

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

Preview Lab → · Contrast checker → · Palette generator →

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