#52277A#52277A

#52277A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.136 H 304.4°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#52277A
RGBrgb(82, 39, 122)
HSLhsl(271, 52%, 32%)
HSVhsv(271, 68%, 48%)
CMYKcmyk(32.8%, 68%, 0%, 52.2%)
CIE-LABlab(25.71, 36.71, -39.65)
CIE-LCHlch(25.71, 54.03, 312.80°)
OKLaboklab(37.56% 0.077 -0.1125)
OKLCHoklch(37.56% 0.136 304.4)
XYZxyz(7.7173, 4.6500, 18.8996)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52277A #4F7A27
analogous
#28277A #52277A #7A2779
triadic
#52277A #7A5227 #277A52
tetradic
#52277A #7A2827 #4F7A27 #27797A
square
#52277A #7A2827 #4F7A27 #27797A
split-complementary
#52277A #797A27 #277A28
monochromatic
#14091D #33184C #52277A #7136A8 #9053C8

Accessibility & contrast

On white

10.88
#52277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#52277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52277A
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52277A#FFFFFF#000000##FFFFFF
##52277A1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#0D3D78
Tritanopia (blue-blind)
#4B394D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52277a;
/* rgb */ color: rgb(82, 39, 122);
/* oklch */ color: oklch(37.6% 0.136 304.4);
Tailwind
colors: {
  custom: {
    50: '#8664a1',
    500: '#52277a',
    950: '#000000',
  },
}
SCSS
$custom: #52277a;
$custom-light: #8664a1;
$custom-dark: #000000;
JSON
{
  "hex": "#52277a",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 271.084,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37561,
    "c": 0.13629,
    "h": 304.4
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#52277A
secondary
#7DAC51
accent
#DB4D91
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #52277A

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

Preview Lab → · Contrast checker → · Palette generator →

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