#52276B#52276B

#52276B is a dark, moderate violet. Relative luminance 0.043; OKLCH L 36.5% C 0.118 H 311.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#52276B
RGBrgb(82, 39, 107)
HSLhsl(278, 47%, 29%)
HSVhsv(278, 64%, 42%)
CMYKcmyk(23.4%, 63.6%, 0%, 58%)
CIE-LABlab(24.66, 32.90, -31.74)
CIE-LCHlch(24.66, 45.72, 316.03°)
OKLaboklab(36.46% 0.0778 -0.0893)
OKLCHoklch(36.46% 0.118 311.1)
XYZxyz(6.8585, 4.3066, 14.3770)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52276B #406B27
analogous
#30276B #52276B #6B2762
triadic
#52276B #6B5227 #276B52
tetradic
#52276B #6B3027 #406B27 #27626B
square
#52276B #6B3027 #406B27 #27626B
split-complementary
#52276B #626B27 #276B30
monochromatic
#110816 #30173E #52276B #743798 #954EBE

Accessibility & contrast

On white

11.28
#52276B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52276B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52276B#FFFFFF#000000##FFFFFF
##52276B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386D
Deuteranopia (green-blind)
#213B69
Tritanopia (blue-blind)
#4F3445
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52276b;
/* rgb */ color: rgb(82, 39, 107);
/* oklch */ color: oklch(36.5% 0.118 311.1);
Tailwind
colors: {
  custom: {
    50: '#856496',
    500: '#52276b',
    950: '#000000',
  },
}
SCSS
$custom: #52276b;
$custom-light: #856496;
$custom-dark: #000000;
JSON
{
  "hex": "#52276b",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 277.941,
    "s": 46.575,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.11838,
    "h": 311.1
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#52276B
secondary
#6D9E50
accent
#D65282
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52276B

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

Preview Lab → · Contrast checker → · Palette generator →

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