#52236A#52236A

#52236A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.124 H 312.3°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#52236A
RGBrgb(82, 35, 106)
HSLhsl(280, 50%, 28%)
HSVhsv(280, 67%, 42%)
CMYKcmyk(22.6%, 67%, 0%, 58.4%)
CIE-LABlab(23.79, 34.84, -32.48)
CIE-LCHlch(23.79, 47.63, 317.01°)
OKLaboklab(35.81% 0.0832 -0.0914)
OKLCHoklch(35.81% 0.124 312.3)
XYZxyz(6.6818, 4.0367, 14.0601)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52236A #3B6A23
analogous
#2E236A #52236A #6A235F
triadic
#52236A #6A5223 #236A52
tetradic
#52236A #6A2E23 #3B6A23 #235F6A
square
#52236A #6A2E23 #3B6A23 #235F6A
split-complementary
#52236A #5F6A23 #236A2E
monochromatic
#120817 #2E143C #52236A #763298 #9846C2

Accessibility & contrast

On white

11.62
#52236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#52236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52236A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52236A#FFFFFF#000000##FFFFFF
##52236A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03366C
Deuteranopia (green-blind)
#1D3A68
Tritanopia (blue-blind)
#4F3143
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52236a;
/* rgb */ color: rgb(82, 35, 106);
/* oklch */ color: oklch(35.8% 0.124 312.3);
Tailwind
colors: {
  custom: {
    50: '#856195',
    500: '#52236a',
    950: '#000000',
  },
}
SCSS
$custom: #52236a;
$custom-light: #856195;
$custom-dark: #000000;
JSON
{
  "hex": "#52236a",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 279.718,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35811,
    "c": 0.12361,
    "h": 312.3
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#52236A
secondary
#679D4B
accent
#DA4E7D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52236A

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

Preview Lab → · Contrast checker → · Palette generator →

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