#52136F#52136F

#52136F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.150 H 312.1°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#52136F
RGBrgb(82, 19, 111)
HSLhsl(281, 71%, 25%)
HSVhsv(281, 83%, 44%)
CMYKcmyk(26.1%, 82.9%, 0%, 56.5%)
CIE-LABlab(21.61, 43.22, -39.24)
CIE-LCHlch(21.61, 58.38, 317.76°)
OKLaboklab(34.37% 0.1003 -0.1112)
OKLCHoklch(34.37% 0.15 312.1)
XYZxyz(6.5813, 3.4075, 15.3469)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52136F #306F13
analogous
#24136F #52136F #6F135E
triadic
#52136F #6F5213 #136F52
tetradic
#52136F #6F2413 #306F13 #135E6F
square
#52136F #6F2413 #306F13 #135E6F
split-complementary
#52136F #5E6F13 #136F24
monochromatic
#13041A #2B0A3B #52136F #791CA3 #9F25D8

Accessibility & contrast

On white

12.49
#52136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#52136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52136F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52136F#FFFFFF#000000##FFFFFF
##52136F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#01356D
Tritanopia (blue-blind)
#4E2A41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52136f;
/* rgb */ color: rgb(82, 19, 111);
/* oklch */ color: oklch(34.4% 0.150 312.1);
Tailwind
colors: {
  custom: {
    50: '#875999',
    500: '#52136f',
    950: '#000000',
  },
}
SCSS
$custom: #52136f;
$custom-light: #875999;
$custom-dark: #000000;
JSON
{
  "hex": "#52136f",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 281.087,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34372,
    "c": 0.14971,
    "h": 312.1
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#52136F
secondary
#5BA638
accent
#EE3A73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52136F

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

Preview Lab → · Contrast checker → · Palette generator →

#52136F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva