#52247B#52247B

#52247B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.142 H 304.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#52247B
RGBrgb(82, 36, 123)
HSLhsl(272, 55%, 31%)
HSVhsv(272, 71%, 48%)
CMYKcmyk(33.3%, 70.7%, 0%, 51.8%)
CIE-LABlab(25.22, 38.55, -41.08)
CIE-LCHlch(25.22, 56.34, 313.18°)
OKLaboklab(37.23% 0.0805 -0.1167)
OKLCHoklch(37.23% 0.142 304.6)
XYZxyz(7.6849, 4.4857, 19.1960)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52247B #4D7B24
analogous
#26247B #52247B #7B2478
triadic
#52247B #7B5224 #247B52
tetradic
#52247B #7B2624 #4D7B24 #24787B
square
#52247B #7B2624 #4D7B24 #24787B
split-complementary
#52247B #787B24 #247B26
monochromatic
#13081C #32164C #52247B #7232AA #904ECB

Accessibility & contrast

On white

11.07
#52247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#52247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52247B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52247B#FFFFFF#000000##FFFFFF
##52247B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#033C79
Tritanopia (blue-blind)
#4A384C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52247b;
/* rgb */ color: rgb(82, 36, 123);
/* oklch */ color: oklch(37.2% 0.142 304.6);
Tailwind
colors: {
  custom: {
    50: '#8662a2',
    500: '#52247b',
    950: '#000000',
  },
}
SCSS
$custom: #52247b;
$custom-light: #8662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52247b",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 271.724,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37227,
    "c": 0.14173,
    "h": 304.6
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#52247B
secondary
#7BAD4D
accent
#DE4A90
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52247B

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

Preview Lab → · Contrast checker → · Palette generator →

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