#52289A#52289A

#52289A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.173 H 294.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#52289A
RGBrgb(82, 40, 154)
HSLhsl(262, 59%, 38%)
HSVhsv(262, 74%, 60%)
CMYKcmyk(46.8%, 74%, 0%, 39.6%)
CIE-LABlab(28.50, 44.79, -55.03)
CIE-LCHlch(28.50, 70.96, 309.15°)
OKLaboklab(40.36% 0.0704 -0.1577)
OKLCHoklch(40.36% 0.173 294.1)
XYZxyz(10.0696, 5.6442, 31.1245)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52289A #709A28
analogous
#28379A #52289A #8B289A
triadic
#52289A #9A5228 #289A52
tetradic
#52289A #9A2837 #709A28 #289A8B
square
#52289A #9A2837 #709A28 #289A8B
split-complementary
#52289A #9A8B28 #379A28
monochromatic
#1E0F39 #381B69 #52289A #6C35CA #8F65D7

Accessibility & contrast

On white

9.86
#52289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#52289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52289A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52289A#FFFFFF#000000##FFFFFF
##52289A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#3D465F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #52289a;
/* rgb */ color: rgb(82, 40, 154);
/* oklch */ color: oklch(40.4% 0.173 294.1);
Tailwind
colors: {
  custom: {
    50: '#8a66b9',
    500: '#52289a',
    950: '#000000',
  },
}
SCSS
$custom: #52289a;
$custom-light: #8a66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52289a",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 262.105,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.1727,
    "h": 294.1
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#52289A
secondary
#9BBD61
accent
#E246A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #52289A

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

Preview Lab → · Contrast checker → · Palette generator →

#52289A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva