#52135F#52135F

#52135F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.134 H 320.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#52135F
RGBrgb(82, 19, 95)
HSLhsl(290, 67%, 22%)
HSVhsv(290, 80%, 37%)
CMYKcmyk(13.7%, 80%, 0%, 62.7%)
CIE-LABlab(20.39, 39.76, -30.74)
CIE-LCHlch(20.39, 50.26, 322.29°)
OKLaboklab(33.12% 0.103 -0.0862)
OKLCHoklch(33.12% 0.134 320.1)
XYZxyz(5.7779, 3.0861, 11.1156)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52135F #205F13
analogous
#2C135F #52135F #5F1346
triadic
#52135F #5F5213 #135F52
tetradic
#52135F #5F2C13 #205F13 #13465F
square
#52135F #5F2C13 #205F13 #13465F
split-complementary
#52135F #465F13 #135F2C
monochromatic
#16051A #26092C #52135F #7E1D92 #AA27C5

Accessibility & contrast

On white

12.99
#52135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#52135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52135F
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52135F#FFFFFF#000000##FFFFFF
##52135F1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#1A335D
Tritanopia (blue-blind)
#522238
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52135f;
/* rgb */ color: rgb(82, 19, 95);
/* oklch */ color: oklch(33.1% 0.134 320.1);
Tailwind
colors: {
  custom: {
    50: '#86598d',
    500: '#52135f',
    950: '#000000',
  },
}
SCSS
$custom: #52135f;
$custom-light: #86598d;
$custom-dark: #000000;
JSON
{
  "hex": "#52135f",
  "rgb": {
    "r": 82,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 289.737,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33123,
    "c": 0.13433,
    "h": 320.1
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#52135F
secondary
#479737
accent
#EA3E5C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52135F

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

Preview Lab → · Contrast checker → · Palette generator →

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