#52247C#52247C

#52247C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.143 H 304.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#52247C
RGBrgb(82, 36, 124)
HSLhsl(271, 55%, 31%)
HSVhsv(271, 71%, 49%)
CMYKcmyk(33.9%, 71%, 0%, 51.4%)
CIE-LABlab(25.29, 38.81, -41.59)
CIE-LCHlch(25.29, 56.88, 313.02°)
OKLaboklab(37.31% 0.0803 -0.1182)
OKLCHoklch(37.31% 0.143 304.2)
XYZxyz(7.7478, 4.5109, 19.5274)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52247C #4E7C24
analogous
#26247C #52247C #7C247A
triadic
#52247C #7C5224 #247C52
tetradic
#52247C #7C2624 #4E7C24 #247A7C
square
#52247C #7C2624 #4E7C24 #247A7C
split-complementary
#52247C #7A7C24 #247C26
monochromatic
#13081D #33164D #52247C #7132AB #904FCC

Accessibility & contrast

On white

11.04
#52247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52247C
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52247C#FFFFFF#000000##FFFFFF
##52247C1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#013C7A
Tritanopia (blue-blind)
#4A384D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #52247c;
/* rgb */ color: rgb(82, 36, 124);
/* oklch */ color: oklch(37.3% 0.143 304.2);
Tailwind
colors: {
  custom: {
    50: '#8762a3',
    500: '#52247c',
    950: '#000000',
  },
}
SCSS
$custom: #52247c;
$custom-light: #8762a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52247c",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 271.364,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37307,
    "c": 0.14289,
    "h": 304.2
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#52247C
secondary
#7CAE4D
accent
#DE4991
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #52247C

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

Preview Lab → · Contrast checker → · Palette generator →

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