#5218A1#5218A1

#5218A1 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.4% C 0.196 H 294.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5218A1
RGBrgb(82, 24, 161)
HSLhsl(265, 74%, 36%)
HSVhsv(265, 85%, 63%)
CMYKcmyk(49.1%, 85.1%, 0%, 36.9%)
CIE-LABlab(26.79, 53.45, -62.09)
CIE-LCHlch(26.79, 81.93, 310.72°)
OKLaboklab(39.37% 0.0805 -0.1782)
OKLCHoklch(39.37% 0.196 294.3)
XYZxyz(10.2376, 5.0200, 34.1409)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5218A1 #67A118
analogous
#1823A1 #5218A1 #9718A1
triadic
#5218A1 #A15218 #18A152
tetradic
#5218A1 #A11823 #67A118 #18A197
square
#5218A1 #A11823 #67A118 #18A197
split-complementary
#5218A1 #A19718 #23A118
monochromatic
#1C0836 #37106C #5218A1 #6D20D6 #8E4FE5

Accessibility & contrast

On white

10.48
#5218A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5218A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5218A1
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5218A1#FFFFFF#000000##FFFFFF
##5218A11.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#39425F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5218a1;
/* rgb */ color: rgb(82, 24, 161);
/* oklch */ color: oklch(39.4% 0.196 294.3);
Tailwind
colors: {
  custom: {
    50: '#8c5fbe',
    500: '#5218a1',
    950: '#000000',
  },
}
SCSS
$custom: #5218a1;
$custom-light: #8c5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5218a1",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 265.401,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3937,
    "c": 0.19558,
    "h": 294.3
  },
  "luminance": 0.0502
}

Semantic roles & 50–950 ramp

primary
#5218A1
secondary
#94C74E
accent
#F137A2
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5218A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5218A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva