#5229AB#5229AB

#5229AB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.191 H 290.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5229AB
RGBrgb(82, 41, 171)
HSLhsl(259, 61%, 42%)
HSVhsv(259, 76%, 67%)
CMYKcmyk(52%, 76%, 0%, 32.9%)
CIE-LABlab(30.20, 49.01, -62.53)
CIE-LCHlch(30.20, 79.44, 308.09°)
OKLaboklab(42.03% 0.0653 -0.1797)
OKLCHoklch(42.03% 0.191 290)
XYZxyz(11.6212, 6.3195, 39.1276)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229AB #82AB29
analogous
#2941AB #5229AB #9329AB
triadic
#5229AB #AB5229 #29AB52
tetradic
#5229AB #AB2941 #82AB29 #29AB93
square
#5229AB #AB2941 #82AB29 #29AB93
split-complementary
#5229AB #AB9329 #41AB29
monochromatic
#231148 #3A1D7A #5229AB #6E40D1 #9371DD

Accessibility & contrast

On white

9.28
#5229AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5229AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229AB
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229AB#FFFFFF#000000##FFFFFF
##5229AB1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#324D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5229ab;
/* rgb */ color: rgb(82, 41, 171);
/* oklch */ color: oklch(42.0% 0.191 290.0);
Tailwind
colors: {
  custom: {
    50: '#8c67c5',
    500: '#5229ab',
    950: '#000000',
  },
}
SCSS
$custom: #5229ab;
$custom-light: #8c67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5229ab",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 258.923,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42032,
    "c": 0.19117,
    "h": 290
  },
  "luminance": 0.0632
}

Semantic roles & 50–950 ramp

primary
#5229AB
secondary
#A8C46C
accent
#E443B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5229AB

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

Preview Lab → · Contrast checker → · Palette generator →

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