#52236B#52236B

#52236B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.125 H 311.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#52236B
RGBrgb(82, 35, 107)
HSLhsl(279, 51%, 28%)
HSVhsv(279, 67%, 42%)
CMYKcmyk(23.4%, 67.3%, 0%, 58%)
CIE-LABlab(23.86, 35.08, -33.02)
CIE-LCHlch(23.86, 48.18, 316.73°)
OKLaboklab(35.88% 0.0832 -0.093)
OKLCHoklch(35.88% 0.125 311.8)
XYZxyz(6.7341, 4.0576, 14.3355)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52236B #3C6B23
analogous
#2E236B #52236B #6B2360
triadic
#52236B #6B5223 #236B52
tetradic
#52236B #6B2E23 #3C6B23 #23606B
square
#52236B #6B2E23 #3C6B23 #23606B
split-complementary
#52236B #606B23 #236B2E
monochromatic
#120817 #2F143D #52236B #753299 #9746C2

Accessibility & contrast

On white

11.59
#52236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52236B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52236B#FFFFFF#000000##FFFFFF
##52236B1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01366D
Deuteranopia (green-blind)
#1C3A69
Tritanopia (blue-blind)
#4F3143
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52236b;
/* rgb */ color: rgb(82, 35, 107);
/* oklch */ color: oklch(35.9% 0.125 311.8);
Tailwind
colors: {
  custom: {
    50: '#856196',
    500: '#52236b',
    950: '#000000',
  },
}
SCSS
$custom: #52236b;
$custom-light: #856196;
$custom-dark: #000000;
JSON
{
  "hex": "#52236b",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 279.167,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35882,
    "c": 0.12476,
    "h": 311.8
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#52236B
secondary
#689E4B
accent
#DA4E7E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52236B

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

Preview Lab → · Contrast checker → · Palette generator →

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