#5A218F#5A218F

#5A218F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.169 H 302.7°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5A218F
RGBrgb(90, 33, 143)
HSLhsl(271, 63%, 35%)
HSVhsv(271, 77%, 56%)
CMYKcmyk(37.1%, 76.9%, 0%, 43.9%)
CIE-LABlab(27.42, 46.64, -49.98)
CIE-LCHlch(27.42, 68.36, 313.02°)
OKLaboklab(39.53% 0.0917 -0.1425)
OKLCHoklch(39.53% 0.169 302.7)
XYZxyz(9.7171, 5.2445, 26.4816)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A218F #568F21
analogous
#23218F #5A218F #8F218D
triadic
#5A218F #8F5A21 #218F5A
tetradic
#5A218F #8F2321 #568F21 #218D8F
square
#5A218F #8F2321 #568F21 #218D8F
split-complementary
#5A218F #8D8F21 #218F23
monochromatic
#1B0A2C #3B165D #5A218F #792CC1 #9853D7

Accessibility & contrast

On white

10.25
#5A218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A218F
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A218F#FFFFFF#000000##FFFFFF
##5A218F1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#4F3D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a218f;
/* rgb */ color: rgb(90, 33, 143);
/* oklch */ color: oklch(39.5% 0.169 302.7);
Tailwind
colors: {
  custom: {
    50: '#8e63b1',
    500: '#5a218f',
    950: '#000000',
  },
}
SCSS
$custom: #5a218f;
$custom-light: #8e63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a218f",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 271.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39533,
    "c": 0.16944,
    "h": 302.7
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#5A218F
secondary
#84BB51
accent
#E64291
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A218F

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

Preview Lab → · Contrast checker → · Palette generator →

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