#52276E#52276E

#52276E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.122 H 309.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#52276E
RGBrgb(82, 39, 110)
HSLhsl(276, 48%, 29%)
HSVhsv(276, 65%, 43%)
CMYKcmyk(25.5%, 64.5%, 0%, 56.9%)
CIE-LABlab(24.86, 33.65, -33.35)
CIE-LCHlch(24.86, 47.38, 315.25°)
OKLaboklab(36.67% 0.0777 -0.094)
OKLCHoklch(36.67% 0.122 309.6)
XYZxyz(7.0191, 4.3708, 15.2227)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52276E #436E27
analogous
#2F276E #52276E #6E2767
triadic
#52276E #6E5227 #276E52
tetradic
#52276E #6E2F27 #436E27 #27676E
square
#52276E #6E2F27 #436E27 #27676E
split-complementary
#52276E #676E27 #276E2F
monochromatic
#110817 #301741 #52276E #74379B #944FC1

Accessibility & contrast

On white

11.20
#52276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52276E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52276E#FFFFFF#000000##FFFFFF
##52276E1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073970
Deuteranopia (green-blind)
#1E3C6C
Tritanopia (blue-blind)
#4E3546
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52276e;
/* rgb */ color: rgb(82, 39, 110);
/* oklch */ color: oklch(36.7% 0.122 309.6);
Tailwind
colors: {
  custom: {
    50: '#856498',
    500: '#52276e',
    950: '#000000',
  },
}
SCSS
$custom: #52276e;
$custom-light: #856498;
$custom-dark: #000000;
JSON
{
  "hex": "#52276e",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 276.338,
    "s": 47.651,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36672,
    "c": 0.12195,
    "h": 309.6
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#52276E
secondary
#70A150
accent
#D75186
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #52276E

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

Preview Lab → · Contrast checker → · Palette generator →

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