#52276C#52276C

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

Color values

HEX#52276C
RGBrgb(82, 39, 108)
HSLhsl(277, 47%, 29%)
HSVhsv(277, 64%, 42%)
CMYKcmyk(24.1%, 63.9%, 0%, 57.6%)
CIE-LABlab(24.73, 33.15, -32.28)
CIE-LCHlch(24.73, 46.27, 315.76°)
OKLaboklab(36.53% 0.0777 -0.0908)
OKLCHoklch(36.53% 0.12 310.6)
XYZxyz(6.9115, 4.3277, 14.6557)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52276C #416C27
analogous
#30276C #52276C #6C2764
triadic
#52276C #6C5227 #276C52
tetradic
#52276C #6C3027 #416C27 #27646C
square
#52276C #6C3027 #416C27 #27646C
split-complementary
#52276C #646C27 #276C30
monochromatic
#110816 #30173F #52276C #743799 #954EBF

Accessibility & contrast

On white

11.26
#52276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52276C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52276C
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52276C#FFFFFF#000000##FFFFFF
##52276C1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B396E
Deuteranopia (green-blind)
#203B6A
Tritanopia (blue-blind)
#4F3445
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52276c;
/* rgb */ color: rgb(82, 39, 108);
/* oklch */ color: oklch(36.5% 0.120 310.6);
Tailwind
colors: {
  custom: {
    50: '#856496',
    500: '#52276c',
    950: '#000000',
  },
}
SCSS
$custom: #52276c;
$custom-light: #856496;
$custom-dark: #000000;
JSON
{
  "hex": "#52276c",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 277.391,
    "s": 46.939,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36531,
    "c": 0.11957,
    "h": 310.6
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#52276C
secondary
#6E9F50
accent
#D75183
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #52276C

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

Preview Lab → · Contrast checker → · Palette generator →

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