#5223A6#5223A6

#5223A6 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.192 H 291.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5223A6
RGBrgb(82, 35, 166)
HSLhsl(262, 65%, 39%)
HSVhsv(262, 79%, 65%)
CMYKcmyk(50.6%, 78.9%, 0%, 34.9%)
CIE-LABlab(28.77, 50.41, -61.87)
CIE-LCHlch(28.77, 79.81, 309.17°)
OKLaboklab(40.89% 0.0714 -0.1777)
OKLCHoklch(40.89% 0.192 291.9)
XYZxyz(10.9617, 5.7487, 36.6010)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5223A6 #77A623
analogous
#2335A6 #5223A6 #9423A6
triadic
#5223A6 #A65223 #23A652
tetradic
#5223A6 #A62335 #77A623 #23A694
square
#5223A6 #A62335 #77A623 #23A694
split-complementary
#5223A6 #A69423 #35A623
monochromatic
#200E41 #391873 #5223A6 #6C32D4 #9165DF

Accessibility & contrast

On white

9.77
#5223A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5223A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5223A6
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5223A6#FFFFFF#000000##FFFFFF
##5223A61.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#364864
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5223a6;
/* rgb */ color: rgb(82, 35, 166);
/* oklch */ color: oklch(40.9% 0.192 291.9);
Tailwind
colors: {
  custom: {
    50: '#8c64c2',
    500: '#5223a6',
    950: '#000000',
  },
}
SCSS
$custom: #5223a6;
$custom-light: #8c64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5223a6",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 261.527,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40885,
    "c": 0.19151,
    "h": 291.9
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#5223A6
secondary
#A0C461
accent
#E840AC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5223A6

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

Preview Lab → · Contrast checker → · Palette generator →

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