#52276A#52276A

#52276A is a dark, moderate violet. Relative luminance 0.043; OKLCH L 36.4% C 0.117 H 311.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#52276A
RGBrgb(82, 39, 106)
HSLhsl(279, 46%, 28%)
HSVhsv(279, 63%, 42%)
CMYKcmyk(22.6%, 63.2%, 0%, 58.4%)
CIE-LABlab(24.59, 32.66, -31.20)
CIE-LCHlch(24.59, 45.16, 316.31°)
OKLaboklab(36.39% 0.0778 -0.0877)
OKLCHoklch(36.39% 0.117 311.6)
XYZxyz(6.8062, 4.2856, 14.1015)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52276A #3F6A27
analogous
#30276A #52276A #6A2760
triadic
#52276A #6A5227 #276A52
tetradic
#52276A #6A3027 #3F6A27 #27606A
square
#52276A #6A3027 #3F6A27 #27606A
split-complementary
#52276A #606A27 #276A30
monochromatic
#110816 #2F173D #52276A #753797 #964EBE

Accessibility & contrast

On white

11.31
#52276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52276A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52276A#FFFFFF#000000##FFFFFF
##52276A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F386C
Deuteranopia (green-blind)
#213B68
Tritanopia (blue-blind)
#4F3344
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52276a;
/* rgb */ color: rgb(82, 39, 106);
/* oklch */ color: oklch(36.4% 0.117 311.6);
Tailwind
colors: {
  custom: {
    50: '#856495',
    500: '#52276a',
    950: '#000000',
  },
}
SCSS
$custom: #52276a;
$custom-light: #856495;
$custom-dark: #000000;
JSON
{
  "hex": "#52276a",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 278.507,
    "s": 46.207,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36392,
    "c": 0.11719,
    "h": 311.6
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#52276A
secondary
#6C9D50
accent
#D65281
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52276A

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

Preview Lab → · Contrast checker → · Palette generator →

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