#52226A#52226A

#52226A is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.7% C 0.125 H 312.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#52226A
RGBrgb(82, 34, 106)
HSLhsl(280, 51%, 27%)
HSVhsv(280, 68%, 42%)
CMYKcmyk(22.6%, 67.9%, 0%, 58.4%)
CIE-LABlab(23.60, 35.37, -32.79)
CIE-LCHlch(23.60, 48.23, 317.17°)
OKLaboklab(35.67% 0.0845 -0.0923)
OKLCHoklch(35.67% 0.125 312.5)
XYZxyz(6.6528, 3.9787, 14.0504)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52226A #3A6A22
analogous
#2E226A #52226A #6A225E
triadic
#52226A #6A5222 #226A52
tetradic
#52226A #6A2E22 #3A6A22 #225E6A
square
#52226A #6A2E22 #3A6A22 #225E6A
split-complementary
#52226A #5E6A22 #226A2E
monochromatic
#120717 #2E133C #52226A #763198 #9844C3

Accessibility & contrast

On white

11.69
#52226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#52226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52226A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52226A#FFFFFF#000000##FFFFFF
##52226A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01366C
Deuteranopia (green-blind)
#1C3968
Tritanopia (blue-blind)
#4F3042
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52226a;
/* rgb */ color: rgb(82, 34, 106);
/* oklch */ color: oklch(35.7% 0.125 312.5);
Tailwind
colors: {
  custom: {
    50: '#856195',
    500: '#52226a',
    950: '#000000',
  },
}
SCSS
$custom: #52226a;
$custom-light: #856195;
$custom-dark: #000000;
JSON
{
  "hex": "#52226a",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 280,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35672,
    "c": 0.12517,
    "h": 312.5
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#52226A
secondary
#669E4A
accent
#DB4D7C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52226A

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

Preview Lab → · Contrast checker → · Palette generator →

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