#5229AC#5229AC

#5229AC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.192 H 289.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5229AC
RGBrgb(82, 41, 172)
HSLhsl(259, 62%, 42%)
HSVhsv(259, 76%, 67%)
CMYKcmyk(52.3%, 76.2%, 0%, 32.5%)
CIE-LABlab(30.30, 49.29, -62.98)
CIE-LCHlch(30.30, 79.97, 308.05°)
OKLaboklab(42.13% 0.065 -0.181)
OKLCHoklch(42.13% 0.192 289.8)
XYZxyz(11.7169, 6.3577, 39.6315)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229AC #83AC29
analogous
#2941AC #5229AC #9429AC
triadic
#5229AC #AC5229 #29AC52
tetradic
#5229AC #AC2941 #83AC29 #29AC94
square
#5229AC #AC2941 #83AC29 #29AC94
split-complementary
#5229AC #AC9429 #41AC29
monochromatic
#231149 #3A1D7B #5229AC #6E41D2 #9472DD

Accessibility & contrast

On white

9.24
#5229AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5229AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5229AC#FFFFFF#000000##FFFFFF
##5229AC1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#314D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5229ac;
/* rgb */ color: rgb(82, 41, 172);
/* oklch */ color: oklch(42.1% 0.192 289.8);
Tailwind
colors: {
  custom: {
    50: '#8c67c6',
    500: '#5229ac',
    950: '#000000',
  },
}
SCSS
$custom: #5229ac;
$custom-light: #8c67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5229ac",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 172
  },
  "hsl": {
    "h": 258.779,
    "s": 61.502,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42125,
    "c": 0.19231,
    "h": 289.8
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#5229AC
secondary
#A9C56C
accent
#E543B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5229AC

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

Preview Lab → · Contrast checker → · Palette generator →

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