#5A2297#5A2297

#5A2297 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.177 H 300.1°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5A2297
RGBrgb(90, 34, 151)
HSLhsl(269, 63%, 36%)
HSVhsv(269, 77%, 59%)
CMYKcmyk(40.4%, 77.5%, 0%, 40.8%)
CIE-LABlab(28.25, 48.20, -53.55)
CIE-LCHlch(28.25, 72.05, 311.99°)
OKLaboklab(40.33% 0.0887 -0.153)
OKLCHoklch(40.33% 0.177 300.1)
XYZxyz(10.3730, 5.5520, 29.7973)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2297 #5F9722
analogous
#222597 #5A2297 #952297
triadic
#5A2297 #975A22 #22975A
tetradic
#5A2297 #972225 #5F9722 #229795
square
#5A2297 #972225 #5F9722 #229795
split-complementary
#5A2297 #979522 #259722
monochromatic
#1E0C33 #3C1765 #5A2297 #782DC9 #975ADA

Accessibility & contrast

On white

9.95
#5A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2297
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2297#FFFFFF#000000##FFFFFF
##5A22971.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4C415B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2297;
/* rgb */ color: rgb(90, 34, 151);
/* oklch */ color: oklch(40.3% 0.177 300.1);
Tailwind
colors: {
  custom: {
    50: '#8f64b7',
    500: '#5a2297',
    950: '#000000',
  },
}
SCSS
$custom: #5a2297;
$custom-light: #8f64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2297",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 268.718,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40329,
    "c": 0.17688,
    "h": 300.1
  },
  "luminance": 0.05552
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2297

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

Preview Lab → · Contrast checker → · Palette generator →

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