#5229AD#5229AD

#5229AD is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.193 H 289.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5229AD
RGBrgb(82, 41, 173)
HSLhsl(259, 62%, 42%)
HSVhsv(259, 76%, 68%)
CMYKcmyk(52.6%, 76.3%, 0%, 32.2%)
CIE-LABlab(30.39, 49.56, -63.42)
CIE-LCHlch(30.39, 80.49, 308.01°)
OKLaboklab(42.22% 0.0647 -0.1823)
OKLCHoklch(42.22% 0.193 289.6)
XYZxyz(11.8132, 6.3963, 40.1392)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229AD #84AD29
analogous
#2942AD #5229AD #9429AD
triadic
#5229AD #AD5229 #29AD52
tetradic
#5229AD #AD2942 #84AD29 #29AD94
square
#5229AD #AD2942 #84AD29 #29AD94
split-complementary
#5229AD #AD9429 #42AD29
monochromatic
#23124A #3B1D7C #5229AD #6E41D2 #9473DE

Accessibility & contrast

On white

9.21
#5229AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5229AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229AD
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229AD#FFFFFF#000000##FFFFFF
##5229AD1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#304E6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5229ad;
/* rgb */ color: rgb(82, 41, 173);
/* oklch */ color: oklch(42.2% 0.193 289.6);
Tailwind
colors: {
  custom: {
    50: '#8c68c7',
    500: '#5229ad',
    950: '#000000',
  },
}
SCSS
$custom: #5229ad;
$custom-light: #8c68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5229ad",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 173
  },
  "hsl": {
    "h": 258.636,
    "s": 61.682,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42219,
    "c": 0.19345,
    "h": 289.6
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#5229AD
secondary
#AAC56D
accent
#E543B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5229AD

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

Preview Lab → · Contrast checker → · Palette generator →

#5229AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva