#52247D#52247D

#52247D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.144 H 303.8°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#52247D
RGBrgb(82, 36, 125)
HSLhsl(271, 55%, 32%)
HSVhsv(271, 71%, 49%)
CMYKcmyk(34.4%, 71.2%, 0%, 51%)
CIE-LABlab(25.37, 39.07, -42.10)
CIE-LCHlch(25.37, 57.43, 312.86°)
OKLaboklab(37.39% 0.0802 -0.1197)
OKLCHoklch(37.39% 0.144 303.8)
XYZxyz(7.8114, 4.5363, 19.8621)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52247D #4F7D24
analogous
#25247D #52247D #7D247C
triadic
#52247D #7D5224 #247D52
tetradic
#52247D #7D2524 #4F7D24 #247C7D
square
#52247D #7D2524 #4F7D24 #247C7D
split-complementary
#52247D #7C7D24 #247D25
monochromatic
#14091E #33164D #52247D #7132AD #904FCC

Accessibility & contrast

On white

11.01
#52247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#52247D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52247D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52247D#FFFFFF#000000##FFFFFF
##52247D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#4A384D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52247d;
/* rgb */ color: rgb(82, 36, 125);
/* oklch */ color: oklch(37.4% 0.144 303.8);
Tailwind
colors: {
  custom: {
    50: '#8763a3',
    500: '#52247d',
    950: '#000000',
  },
}
SCSS
$custom: #52247d;
$custom-light: #8763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52247d",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 271.011,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37387,
    "c": 0.14405,
    "h": 303.8
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#52247D
secondary
#7DAF4D
accent
#DF4991
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52247D

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

Preview Lab → · Contrast checker → · Palette generator →

#52247D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva