#52277E#52277E

#52277E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.141 H 302.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#52277E
RGBrgb(82, 39, 126)
HSLhsl(270, 53%, 32%)
HSVhsv(270, 69%, 49%)
CMYKcmyk(34.9%, 69%, 0%, 50.6%)
CIE-LABlab(26.01, 37.76, -41.69)
CIE-LCHlch(26.01, 56.25, 312.17°)
OKLaboklab(37.87% 0.0765 -0.1185)
OKLCHoklch(37.87% 0.141 302.9)
XYZxyz(7.9702, 4.7512, 20.2318)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52277E #537E27
analogous
#27287E #52277E #7D277E
triadic
#52277E #7E5227 #277E52
tetradic
#52277E #7E2728 #537E27 #277E7D
square
#52277E #7E2728 #537E27 #277E7D
split-complementary
#52277E #7E7D27 #287E27
monochromatic
#150A21 #34194F #52277E #7035AD #8F55CA

Accessibility & contrast

On white

10.77
#52277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#52277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52277E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52277E#FFFFFF#000000##FFFFFF
##52277E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#033D7C
Tritanopia (blue-blind)
#493B4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52277e;
/* rgb */ color: rgb(82, 39, 126);
/* oklch */ color: oklch(37.9% 0.141 302.9);
Tailwind
colors: {
  custom: {
    50: '#8664a4',
    500: '#52277e',
    950: '#000000',
  },
}
SCSS
$custom: #52277e;
$custom-light: #8664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52277e",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 269.655,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37872,
    "c": 0.14105,
    "h": 302.9
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#52277E
secondary
#81AF52
accent
#DC4C95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #52277E

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

Preview Lab → · Contrast checker → · Palette generator →

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