#5219B4#5219B4

#5219B4 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.4% C 0.214 H 289.8°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5219B4
RGBrgb(82, 25, 180)
HSLhsl(262, 76%, 40%)
HSVhsv(262, 86%, 71%)
CMYKcmyk(54.4%, 86.1%, 0%, 29.4%)
CIE-LABlab(28.86, 57.91, -70.13)
CIE-LCHlch(28.86, 90.95, 309.55°)
OKLaboklab(41.37% 0.0725 -0.2017)
OKLCHoklch(41.37% 0.214 289.8)
XYZxyz(12.0631, 5.7838, 43.6519)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5219B4 #7BB419
analogous
#192DB4 #5219B4 #A019B4
triadic
#5219B4 #B45219 #19B452
tetradic
#5219B4 #B4192D #7BB419 #19B4A0
square
#5219B4 #B4192D #7BB419 #19B4A0
split-complementary
#5219B4 #B4A019 #2DB419
monochromatic
#210A49 #3A127E #5219B4 #6D29E1 #915FE9

Accessibility & contrast

On white

9.74
#5219B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5219B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5219B4
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5219B4#FFFFFF#000000##FFFFFF
##5219B41.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#2A4B6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5219b4;
/* rgb */ color: rgb(82, 25, 180);
/* oklch */ color: oklch(41.4% 0.214 289.8);
Tailwind
colors: {
  custom: {
    50: '#8e60cc',
    500: '#5219b4',
    950: '#000000',
  },
}
SCSS
$custom: #5219b4;
$custom-light: #8e60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5219b4",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 180
  },
  "hsl": {
    "h": 262.065,
    "s": 75.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41369,
    "c": 0.21438,
    "h": 289.8
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#5219B4
secondary
#A3CD5C
accent
#F236AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0514
muted
#7E7A82

Preview Lab

Preview with #5219B4

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

Preview Lab → · Contrast checker → · Palette generator →

#5219B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva