#5229A2#5229A2

#5229A2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.181 H 292.0°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5229A2
RGBrgb(82, 41, 162)
HSLhsl(260, 60%, 40%)
HSVhsv(260, 75%, 64%)
CMYKcmyk(49.4%, 74.7%, 0%, 36.5%)
CIE-LABlab(29.38, 46.51, -58.45)
CIE-LCHlch(29.38, 74.69, 308.51°)
OKLaboklab(41.2% 0.0676 -0.1677)
OKLCHoklch(41.2% 0.181 292)
XYZxyz(10.7924, 5.9880, 34.7626)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229A2 #79A229
analogous
#293CA2 #5229A2 #8F29A2
triadic
#5229A2 #A25229 #29A252
tetradic
#5229A2 #A2293C #79A229 #29A28F
square
#5229A2 #A2293C #79A229 #29A28F
split-complementary
#5229A2 #A28F29 #3CA229
monochromatic
#211040 #391D71 #5229A2 #6C3BCD #916CDA

Accessibility & contrast

On white

9.56
#5229A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5229A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5229A2#FFFFFF#000000##FFFFFF
##5229A21.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#384963
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5229a2;
/* rgb */ color: rgb(82, 41, 162);
/* oklch */ color: oklch(41.2% 0.181 292.0);
Tailwind
colors: {
  custom: {
    50: '#8b67bf',
    500: '#5229a2',
    950: '#000000',
  },
}
SCSS
$custom: #5229a2;
$custom-light: #8b67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5229a2",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 260.331,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41201,
    "c": 0.18084,
    "h": 292
  },
  "luminance": 0.05988
}

Semantic roles & 50–950 ramp

primary
#5229A2
secondary
#A2C067
accent
#E345AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5229A2

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

Preview Lab → · Contrast checker → · Palette generator →

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