#5229A4#5229A4

#5229A4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.183 H 291.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5229A4
RGBrgb(82, 41, 164)
HSLhsl(260, 60%, 40%)
HSVhsv(260, 75%, 64%)
CMYKcmyk(50%, 75%, 0%, 35.7%)
CIE-LABlab(29.56, 47.06, -59.36)
CIE-LCHlch(29.56, 75.76, 308.41°)
OKLaboklab(41.38% 0.0671 -0.1704)
OKLCHoklch(41.38% 0.183 291.5)
XYZxyz(10.9716, 6.0596, 35.7063)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229A4 #7BA429
analogous
#293DA4 #5229A4 #8F29A4
triadic
#5229A4 #A45229 #29A452
tetradic
#5229A4 #A4293D #7BA429 #29A48F
square
#5229A4 #A4293D #7BA429 #29A48F
split-complementary
#5229A4 #A48F29 #3DA429
monochromatic
#211142 #3A1D73 #5229A4 #6D3CCE #916DDA

Accessibility & contrast

On white

9.49
#5229A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5229A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229A4
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229A4#FFFFFF#000000##FFFFFF
##5229A41.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#374A64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5229a4;
/* rgb */ color: rgb(82, 41, 164);
/* oklch */ color: oklch(41.4% 0.183 291.5);
Tailwind
colors: {
  custom: {
    50: '#8b67c0',
    500: '#5229a4',
    950: '#000000',
  },
}
SCSS
$custom: #5229a4;
$custom-light: #8b67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5229a4",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 164
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41384,
    "c": 0.18315,
    "h": 291.5
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#5229A4
secondary
#A3C168
accent
#E345AE
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5229A4

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

Preview Lab → · Contrast checker → · Palette generator →

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