#5A2299#5A2299

#5A2299 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.179 H 299.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5A2299
RGBrgb(90, 34, 153)
HSLhsl(268, 64%, 37%)
HSVhsv(268, 78%, 60%)
CMYKcmyk(41.2%, 77.8%, 0%, 40%)
CIE-LABlab(28.43, 48.70, -54.49)
CIE-LCHlch(28.43, 73.08, 311.79°)
OKLaboklab(40.5% 0.0882 -0.1558)
OKLCHoklch(40.5% 0.179 299.5)
XYZxyz(10.5368, 5.6175, 30.6600)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2299 #619922
analogous
#222699 #5A2299 #962299
triadic
#5A2299 #995A22 #22995A
tetradic
#5A2299 #992226 #619922 #229996
square
#5A2299 #992226 #619922 #229996
split-complementary
#5A2299 #999622 #269922
monochromatic
#1F0C35 #3D1767 #5A2299 #772DCB #975BDB

Accessibility & contrast

On white

9.89
#5A2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2299
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2299#FFFFFF#000000##FFFFFF
##5A22991.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#4B425D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2299;
/* rgb */ color: rgb(90, 34, 153);
/* oklch */ color: oklch(40.5% 0.179 299.5);
Tailwind
colors: {
  custom: {
    50: '#8f64b8',
    500: '#5a2299',
    950: '#000000',
  },
}
SCSS
$custom: #5a2299;
$custom-light: #8f64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2299",
  "rgb": {
    "r": 90,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 268.235,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.17902,
    "h": 299.5
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#5A2299
secondary
#8EBF58
accent
#E74199
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2299

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

Preview Lab → · Contrast checker → · Palette generator →

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