#5223A9#5223A9

#5223A9 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.195 H 291.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5223A9
RGBrgb(82, 35, 169)
HSLhsl(261, 66%, 40%)
HSVhsv(261, 79%, 66%)
CMYKcmyk(51.5%, 79.3%, 0%, 33.7%)
CIE-LABlab(29.06, 51.21, -63.21)
CIE-LCHlch(29.06, 81.35, 309.01°)
OKLaboklab(41.17% 0.0704 -0.1816)
OKLCHoklch(41.17% 0.195 291.2)
XYZxyz(11.2401, 5.8600, 38.0673)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223A9 #7AA923
analogous
#2337A9 #5223A9 #9523A9
triadic
#5223A9 #A95223 #23A952
tetradic
#5223A9 #A92337 #7AA923 #23A995
square
#5223A9 #A92337 #7AA923 #23A995
split-complementary
#5223A9 #A99523 #37A923
monochromatic
#210E44 #391976 #5223A9 #6D34D5 #9167DF

Accessibility & contrast

On white

9.67
#5223A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5223A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223A9
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223A9#FFFFFF#000000##FFFFFF
##5223A91.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#334A66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5223a9;
/* rgb */ color: rgb(82, 35, 169);
/* oklch */ color: oklch(41.2% 0.195 291.2);
Tailwind
colors: {
  custom: {
    50: '#8c64c4',
    500: '#5223a9',
    950: '#000000',
  },
}
SCSS
$custom: #5223a9;
$custom-light: #8c64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5223a9",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 261.045,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.41172,
    "c": 0.1948,
    "h": 291.2
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#5223A9
secondary
#A3C563
accent
#E93FAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5223A9

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

Preview Lab → · Contrast checker → · Palette generator →

#5223A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva