#52236D#52236D

#52236D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.127 H 310.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#52236D
RGBrgb(82, 35, 109)
HSLhsl(278, 51%, 28%)
HSVhsv(278, 68%, 43%)
CMYKcmyk(24.8%, 67.9%, 0%, 57.3%)
CIE-LABlab(24.00, 35.57, -34.09)
CIE-LCHlch(24.00, 49.26, 316.21°)
OKLaboklab(36.03% 0.0831 -0.0961)
OKLCHoklch(36.03% 0.127 310.8)
XYZxyz(6.8405, 4.1002, 14.8961)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52236D #3E6D23
analogous
#2D236D #52236D #6D2363
triadic
#52236D #6D5223 #236D52
tetradic
#52236D #6D2D23 #3E6D23 #23636D
square
#52236D #6D2D23 #3E6D23 #23636D
split-complementary
#52236D #636D23 #236D2D
monochromatic
#110717 #2F143F #52236D #75329B #9647C4

Accessibility & contrast

On white

11.54
#52236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#52236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52236D
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52236D#FFFFFF#000000##FFFFFF
##52236D1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#1A3A6B
Tritanopia (blue-blind)
#4F3244
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52236d;
/* rgb */ color: rgb(82, 35, 109);
/* oklch */ color: oklch(36.0% 0.127 310.8);
Tailwind
colors: {
  custom: {
    50: '#856197',
    500: '#52236d',
    950: '#000000',
  },
}
SCSS
$custom: #52236d;
$custom-light: #856197;
$custom-dark: #000000;
JSON
{
  "hex": "#52236d",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 278.108,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.12704,
    "h": 310.8
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#52236D
secondary
#6AA04B
accent
#DB4D81
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52236D

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

Preview Lab → · Contrast checker → · Palette generator →

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