#5229A8#5229A8

#5229A8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.188 H 290.6°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5229A8
RGBrgb(82, 41, 168)
HSLhsl(259, 61%, 41%)
HSVhsv(259, 76%, 66%)
CMYKcmyk(51.2%, 75.6%, 0%, 34.1%)
CIE-LABlab(29.93, 48.17, -61.18)
CIE-LCHlch(29.93, 77.87, 308.22°)
OKLaboklab(41.75% 0.0661 -0.1757)
OKLCHoklch(41.75% 0.188 290.6)
XYZxyz(11.3385, 6.2064, 37.6387)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229A8 #7FA829
analogous
#293FA8 #5229A8 #9129A8
triadic
#5229A8 #A85229 #29A852
tetradic
#5229A8 #A8293F #7FA829 #29A891
square
#5229A8 #A8293F #7FA829 #29A891
split-complementary
#5229A8 #A89129 #3FA829
monochromatic
#221146 #3A1D77 #5229A8 #6D3ED0 #926FDC

Accessibility & contrast

On white

9.37
#5229A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5229A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229A8
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229A8#FFFFFF#000000##FFFFFF
##5229A81.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#344C67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5229a8;
/* rgb */ color: rgb(82, 41, 168);
/* oklch */ color: oklch(41.8% 0.188 290.6);
Tailwind
colors: {
  custom: {
    50: '#8c67c3',
    500: '#5229a8',
    950: '#000000',
  },
}
SCSS
$custom: #5229a8;
$custom-light: #8c67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5229a8",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 168
  },
  "hsl": {
    "h": 259.37,
    "s": 60.766,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41752,
    "c": 0.18774,
    "h": 290.6
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

primary
#5229A8
secondary
#A6C36A
accent
#E444B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5229A8

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

Preview Lab → · Contrast checker → · Palette generator →

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