#52245C#52245C

#52245C is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.106 H 320.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#52245C
RGBrgb(82, 36, 92)
HSLhsl(289, 44%, 25%)
HSVhsv(289, 61%, 36%)
CMYKcmyk(10.9%, 60.9%, 0%, 63.9%)
CIE-LABlab(23.10, 31.03, -24.43)
CIE-LCHlch(23.10, 39.50, 321.78°)
OKLaboklab(35.02% 0.0815 -0.0679)
OKLCHoklch(35.02% 0.106 320.2)
XYZxyz(6.0421, 3.8286, 10.5439)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52245C #2E5C24
analogous
#36245C #52245C #5C244A
triadic
#52245C #5C5224 #245C52
tetradic
#52245C #5C3624 #2E5C24 #244A5C
square
#52245C #5C3624 #2E5C24 #244A5C
split-complementary
#52245C #4A5C24 #245C36
monochromatic
#140916 #2B1330 #52245C #793588 #A046B4

Accessibility & contrast

On white

11.89
#52245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#52245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52245C
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52245C#FFFFFF#000000##FFFFFF
##52245C1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19345E
Deuteranopia (green-blind)
#29395B
Tritanopia (blue-blind)
#532C3C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52245c;
/* rgb */ color: rgb(82, 36, 92);
/* oklch */ color: oklch(35.0% 0.106 320.2);
Tailwind
colors: {
  custom: {
    50: '#84618a',
    500: '#52245c',
    950: '#000000',
  },
}
SCSS
$custom: #52245c;
$custom-light: #84618a;
$custom-dark: #000000;
JSON
{
  "hex": "#52245c",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 289.286,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35015,
    "c": 0.10609,
    "h": 320.2
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#52245C
secondary
#58904C
accent
#D3546B
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #52245C

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

Preview Lab → · Contrast checker → · Palette generator →

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