#5A218A#5A218A

#5A218A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.164 H 304.4°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5A218A
RGBrgb(90, 33, 138)
HSLhsl(273, 61%, 34%)
HSVhsv(273, 76%, 54%)
CMYKcmyk(34.8%, 76.1%, 0%, 45.9%)
CIE-LABlab(27.01, 45.41, -47.55)
CIE-LCHlch(27.01, 65.75, 313.68°)
OKLaboklab(39.11% 0.0928 -0.1354)
OKLCHoklch(39.11% 0.164 304.4)
XYZxyz(9.3467, 5.0964, 24.5311)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A218A #518A21
analogous
#25218A #5A218A #8A2185
triadic
#5A218A #8A5A21 #218A5A
tetradic
#5A218A #8A2521 #518A21 #21858A
square
#5A218A #8A2521 #518A21 #21858A
split-complementary
#5A218A #858A21 #218A25
monochromatic
#1A0927 #3A1559 #5A218A #7A2DBB #9850D5

Accessibility & contrast

On white

10.40
#5A218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5A218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A218A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A218A#FFFFFF#000000##FFFFFF
##5A218A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#513B54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a218a;
/* rgb */ color: rgb(90, 33, 138);
/* oklch */ color: oklch(39.1% 0.164 304.4);
Tailwind
colors: {
  custom: {
    50: '#8d62ad',
    500: '#5a218a',
    950: '#000000',
  },
}
SCSS
$custom: #5a218a;
$custom-light: #8d62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a218a",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 272.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39114,
    "c": 0.16412,
    "h": 304.4
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#5A218A
secondary
#7FB94E
accent
#E5438D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A218A

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

Preview Lab → · Contrast checker → · Palette generator →

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