#52277C#52277C

#52277C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.139 H 303.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#52277C
RGBrgb(82, 39, 124)
HSLhsl(270, 52%, 32%)
HSVhsv(270, 69%, 49%)
CMYKcmyk(33.9%, 68.5%, 0%, 51.4%)
CIE-LABlab(25.86, 37.23, -40.67)
CIE-LCHlch(25.86, 55.14, 312.47°)
OKLaboklab(37.71% 0.0768 -0.1155)
OKLCHoklch(37.71% 0.139 303.6)
XYZxyz(7.8425, 4.7001, 19.5589)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52277C #517C27
analogous
#28277C #52277C #7C277C
triadic
#52277C #7C5227 #277C52
tetradic
#52277C #7C2827 #517C27 #277C7C
square
#52277C #7C2827 #517C27 #277C7C
split-complementary
#52277C #7C7C27 #277C28
monochromatic
#140A1F #33184D #52277C #7136AB #8F54C9

Accessibility & contrast

On white

10.82
#52277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#52277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52277C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52277C#FFFFFF#000000##FFFFFF
##52277C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#083D7A
Tritanopia (blue-blind)
#4A3A4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52277c;
/* rgb */ color: rgb(82, 39, 124);
/* oklch */ color: oklch(37.7% 0.139 303.6);
Tailwind
colors: {
  custom: {
    50: '#8664a2',
    500: '#52277c',
    950: '#000000',
  },
}
SCSS
$custom: #52277c;
$custom-light: #8664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52277c",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 270.353,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37715,
    "c": 0.13868,
    "h": 303.6
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#52277C
secondary
#7FAE51
accent
#DC4C93
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #52277C

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

Preview Lab → · Contrast checker → · Palette generator →

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