#52249C#52249C

#52249C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.179 H 294.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#52249C
RGBrgb(82, 36, 156)
HSLhsl(263, 63%, 38%)
HSVhsv(263, 77%, 61%)
CMYKcmyk(47.4%, 76.9%, 0%, 38.8%)
CIE-LABlab(28.00, 47.27, -57.07)
CIE-LCHlch(28.00, 74.10, 309.63°)
OKLaboklab(40.06% 0.0735 -0.1636)
OKLCHoklch(40.06% 0.179 294.2)
XYZxyz(10.1097, 5.4556, 31.9664)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52249C #6E9C24
analogous
#24329C #52249C #8E249C
triadic
#52249C #9C5224 #249C52
tetradic
#52249C #9C2432 #6E9C24 #249C8E
square
#52249C #9C2432 #6E9C24 #249C8E
split-complementary
#52249C #9C8E24 #329C24
monochromatic
#1E0D39 #38196A #52249C #6C2FCE #8F60DA

Accessibility & contrast

On white

10.04
#52249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#52249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52249C
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52249C#FFFFFF#000000##FFFFFF
##52249C1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#3C455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52249c;
/* rgb */ color: rgb(82, 36, 156);
/* oklch */ color: oklch(40.1% 0.179 294.2);
Tailwind
colors: {
  custom: {
    50: '#8a64ba',
    500: '#52249c',
    950: '#000000',
  },
}
SCSS
$custom: #52249c;
$custom-light: #8a64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52249c",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 263,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4006,
    "c": 0.17938,
    "h": 294.2
  },
  "luminance": 0.05456
}

Semantic roles & 50–950 ramp

primary
#52249C
secondary
#99BF5C
accent
#E642A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #52249C

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

Preview Lab → · Contrast checker → · Palette generator →

#52249C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva