#52226C#52226C

#52226C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.127 H 311.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#52226C
RGBrgb(82, 34, 108)
HSLhsl(279, 52%, 28%)
HSVhsv(279, 69%, 42%)
CMYKcmyk(24.1%, 68.5%, 0%, 57.6%)
CIE-LABlab(23.74, 35.85, -33.86)
CIE-LCHlch(23.74, 49.31, 316.63°)
OKLaboklab(35.82% 0.0844 -0.0955)
OKLCHoklch(35.82% 0.127 311.5)
XYZxyz(6.7580, 4.0208, 14.6045)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52226C #3C6C22
analogous
#2D226C #52226C #6C2261
triadic
#52226C #6C5222 #226C52
tetradic
#52226C #6C2D22 #3C6C22 #22616C
square
#52226C #6C2D22 #3C6C22 #22616C
split-complementary
#52226C #616C22 #226C2D
monochromatic
#120717 #2F133D #52226C #75319B #9744C4

Accessibility & contrast

On white

11.64
#52226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52226C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52226C#FFFFFF#000000##FFFFFF
##52226C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#1A396A
Tritanopia (blue-blind)
#4F3144
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52226c;
/* rgb */ color: rgb(82, 34, 108);
/* oklch */ color: oklch(35.8% 0.127 311.5);
Tailwind
colors: {
  custom: {
    50: '#856196',
    500: '#52226c',
    950: '#000000',
  },
}
SCSS
$custom: #52226c;
$custom-light: #856196;
$custom-dark: #000000;
JSON
{
  "hex": "#52226c",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 278.919,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35817,
    "c": 0.12743,
    "h": 311.5
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#52226C
secondary
#68A04A
accent
#DC4C7F
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52226C

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

Preview Lab → · Contrast checker → · Palette generator →

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