#52207D#52207D

#52207D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.149 H 304.5°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#52207D
RGBrgb(82, 32, 125)
HSLhsl(272, 59%, 31%)
HSVhsv(272, 74%, 49%)
CMYKcmyk(34.4%, 74.4%, 0%, 51%)
CIE-LABlab(24.66, 41.05, -43.25)
CIE-LCHlch(24.66, 59.62, 313.51°)
OKLaboklab(36.88% 0.0846 -0.123)
OKLCHoklch(36.88% 0.149 304.5)
XYZxyz(7.6970, 4.3076, 19.8240)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52207D #4B7D20
analogous
#23207D #52207D #7D2079
triadic
#52207D #7D5220 #207D52
tetradic
#52207D #7D2320 #4B7D20 #20797D
square
#52207D #7D2320 #4B7D20 #20797D
split-complementary
#52207D #797D20 #207D23
monochromatic
#12071C #32144C #52207D #722CAE #9147D0

Accessibility & contrast

On white

11.28
#52207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52207D
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52207D#FFFFFF#000000##FFFFFF
##52207D1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#4A364C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52207d;
/* rgb */ color: rgb(82, 32, 125);
/* oklch */ color: oklch(36.9% 0.149 304.5);
Tailwind
colors: {
  custom: {
    50: '#8760a3',
    500: '#52207d',
    950: '#000000',
  },
}
SCSS
$custom: #52207d;
$custom-light: #8760a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52207d",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 272.258,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36883,
    "c": 0.1493,
    "h": 304.5
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#52207D
secondary
#79B049
accent
#E2458E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52207D

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

Preview Lab → · Contrast checker → · Palette generator →

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