#5229AA#5229AA

#5229AA is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.190 H 290.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5229AA
RGBrgb(82, 41, 170)
HSLhsl(259, 61%, 41%)
HSVhsv(259, 76%, 67%)
CMYKcmyk(51.8%, 75.9%, 0%, 33.3%)
CIE-LABlab(30.11, 48.73, -62.08)
CIE-LCHlch(30.11, 78.92, 308.13°)
OKLaboklab(41.94% 0.0656 -0.1784)
OKLCHoklch(41.94% 0.19 290.2)
XYZxyz(11.5262, 6.2815, 38.6275)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229AA #81AA29
analogous
#2941AA #5229AA #9329AA
triadic
#5229AA #AA5229 #29AA52
tetradic
#5229AA #AA2941 #81AA29 #29AA93
square
#5229AA #AA2941 #81AA29 #29AA93
split-complementary
#5229AA #AA9329 #41AA29
monochromatic
#221147 #3A1D79 #5229AA #6E3FD1 #9371DD

Accessibility & contrast

On white

9.31
#5229AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5229AA#FFFFFF#000000##FFFFFF
##5229AA1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5229aa;
/* rgb */ color: rgb(82, 41, 170);
/* oklch */ color: oklch(41.9% 0.190 290.2);
Tailwind
colors: {
  custom: {
    50: '#8c67c4',
    500: '#5229aa',
    950: '#000000',
  },
}
SCSS
$custom: #5229aa;
$custom-light: #8c67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5229aa",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 170
  },
  "hsl": {
    "h": 259.07,
    "s": 61.137,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41938,
    "c": 0.19003,
    "h": 290.2
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#5229AA
secondary
#A8C46B
accent
#E444B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5229AA

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

Preview Lab → · Contrast checker → · Palette generator →

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