#52126F#52126F

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

Color values

HEX#52126F
RGBrgb(82, 18, 111)
HSLhsl(281, 72%, 25%)
HSVhsv(281, 84%, 44%)
CMYKcmyk(26.1%, 83.8%, 0%, 56.5%)
CIE-LABlab(21.48, 43.57, -39.44)
CIE-LCHlch(21.48, 58.77, 317.85°)
OKLaboklab(34.29% 0.1011 -0.1117)
OKLCHoklch(34.29% 0.151 312.1)
XYZxyz(6.5647, 3.3743, 15.3413)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52126F #2F6F12
analogous
#23126F #52126F #6F125E
triadic
#52126F #6F5212 #126F52
tetradic
#52126F #6F2312 #2F6F12 #125E6F
square
#52126F #6F2312 #2F6F12 #125E6F
split-complementary
#52126F #5E6F12 #126F23
monochromatic
#13041A #2B093A #52126F #791BA4 #A023D8

Accessibility & contrast

On white

12.54
#52126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#52126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52126F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52126F#FFFFFF#000000##FFFFFF
##52126F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52126f;
/* rgb */ color: rgb(82, 18, 111);
/* oklch */ color: oklch(34.3% 0.151 312.1);
Tailwind
colors: {
  custom: {
    50: '#875999',
    500: '#52126f',
    950: '#000000',
  },
}
SCSS
$custom: #52126f;
$custom-light: #875999;
$custom-dark: #000000;
JSON
{
  "hex": "#52126f",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 281.29,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34286,
    "c": 0.15072,
    "h": 312.1
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#52126F
secondary
#59A637
accent
#EF3972
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52126F

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

Preview Lab → · Contrast checker → · Palette generator →

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