#52126D#52126D

#52126D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.149 H 313.1°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#52126D
RGBrgb(82, 18, 109)
HSLhsl(282, 72%, 25%)
HSVhsv(282, 83%, 43%)
CMYKcmyk(24.8%, 83.5%, 0%, 57.3%)
CIE-LABlab(21.32, 43.13, -38.41)
CIE-LCHlch(21.32, 57.75, 318.31°)
OKLaboklab(34.12% 0.1016 -0.1087)
OKLCHoklch(34.12% 0.149 313.1)
XYZxyz(6.4558, 3.3308, 14.7679)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52126D #2D6D12
analogous
#25126D #52126D #6D125B
triadic
#52126D #6D5212 #126D52
tetradic
#52126D #6D2512 #2D6D12 #125B6D
square
#52126D #6D2512 #2D6D12 #125B6D
split-complementary
#52126D #5B6D12 #126D25
monochromatic
#14041A #2A0938 #52126D #7A1BA2 #A123D6

Accessibility & contrast

On white

12.60
#52126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52126D
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52126D#FFFFFF#000000##FFFFFF
##52126D1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#04346B
Tritanopia (blue-blind)
#4F2840
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52126d;
/* rgb */ color: rgb(82, 18, 109);
/* oklch */ color: oklch(34.1% 0.149 313.1);
Tailwind
colors: {
  custom: {
    50: '#865997',
    500: '#52126d',
    950: '#000000',
  },
}
SCSS
$custom: #52126d;
$custom-light: #865997;
$custom-dark: #000000;
JSON
{
  "hex": "#52126d",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 282.198,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34122,
    "c": 0.14879,
    "h": 313.1
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#52126D
secondary
#57A437
accent
#EE396F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52126D

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

Preview Lab → · Contrast checker → · Palette generator →

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