#5A2298#5A2298

#5A2298 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.178 H 299.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5A2298
RGBrgb(90, 34, 152)
HSLhsl(268, 63%, 36%)
HSVhsv(268, 78%, 60%)
CMYKcmyk(40.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(28.34, 48.45, -54.02)
CIE-LCHlch(28.34, 72.56, 311.89°)
OKLaboklab(40.42% 0.0885 -0.1544)
OKLCHoklch(40.42% 0.178 299.8)
XYZxyz(10.4545, 5.5846, 30.2268)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2298 #609822
analogous
#222598 #5A2298 #952298
triadic
#5A2298 #985A22 #22985A
tetradic
#5A2298 #982225 #609822 #229895
square
#5A2298 #982225 #609822 #229895
split-complementary
#5A2298 #989522 #259822
monochromatic
#1F0C34 #3C1766 #5A2298 #782DCA #975ADA

Accessibility & contrast

On white

9.92
#5A2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5A2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2298
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2298#FFFFFF#000000##FFFFFF
##5A22981.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#4B415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2298;
/* rgb */ color: rgb(90, 34, 152);
/* oklch */ color: oklch(40.4% 0.178 299.8);
Tailwind
colors: {
  custom: {
    50: '#8f64b7',
    500: '#5a2298',
    950: '#000000',
  },
}
SCSS
$custom: #5a2298;
$custom-light: #8f64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2298",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 268.475,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40417,
    "c": 0.17795,
    "h": 299.8
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#5A2298
secondary
#8EBE57
accent
#E64198
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2298

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

Preview Lab → · Contrast checker → · Palette generator →

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