#52207E#52207E

#52207E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.150 H 304.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#52207E
RGBrgb(82, 32, 126)
HSLhsl(272, 59%, 31%)
HSVhsv(272, 75%, 49%)
CMYKcmyk(34.9%, 74.6%, 0%, 50.6%)
CIE-LABlab(24.74, 41.30, -43.75)
CIE-LCHlch(24.74, 60.16, 313.35°)
OKLaboklab(36.97% 0.0844 -0.1245)
OKLCHoklch(36.97% 0.15 304.1)
XYZxyz(7.7612, 4.3332, 20.1621)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52207E #4C7E20
analogous
#23207E #52207E #7E207B
triadic
#52207E #7E5220 #207E52
tetradic
#52207E #7E2320 #4C7E20 #207B7E
square
#52207E #7E2320 #4C7E20 #207B7E
split-complementary
#52207E #7B7E20 #207E23
monochromatic
#12071C #32144D #52207E #722CAF #9148D0

Accessibility & contrast

On white

11.25
#52207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52207E
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52207E#FFFFFF#000000##FFFFFF
##52207E1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#49374D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52207e;
/* rgb */ color: rgb(82, 32, 126);
/* oklch */ color: oklch(37.0% 0.150 304.1);
Tailwind
colors: {
  custom: {
    50: '#8760a4',
    500: '#52207e',
    950: '#000000',
  },
}
SCSS
$custom: #52207e;
$custom-light: #8760a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52207e",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 271.915,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36966,
    "c": 0.15041,
    "h": 304.1
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#52207E
secondary
#7AB149
accent
#E3458F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52207E

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

Preview Lab → · Contrast checker → · Palette generator →

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