#52126A#52126A

#52126A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.146 H 314.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#52126A
RGBrgb(82, 18, 106)
HSLhsl(284, 71%, 24%)
HSVhsv(284, 83%, 42%)
CMYKcmyk(22.6%, 83%, 0%, 58.4%)
CIE-LABlab(21.08, 42.47, -36.84)
CIE-LCHlch(21.08, 56.23, 319.06°)
OKLaboklab(33.88% 0.1022 -0.1041)
OKLCHoklch(33.88% 0.146 314.5)
XYZxyz(6.2971, 3.2673, 13.9318)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52126A #2A6A12
analogous
#26126A #52126A #6A1256
triadic
#52126A #6A5212 #126A52
tetradic
#52126A #6A2612 #2A6A12 #12566A
square
#52126A #6A2612 #2A6A12 #12566A
split-complementary
#52126A #566A12 #126A26
monochromatic
#14041A #2A0936 #52126A #7A1B9E #A324D3

Accessibility & contrast

On white

12.70
#52126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#52126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52126A
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52126A#FFFFFF#000000##FFFFFF
##52126A1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#0B3468
Tritanopia (blue-blind)
#50273E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52126a;
/* rgb */ color: rgb(82, 18, 106);
/* oklch */ color: oklch(33.9% 0.146 314.5);
Tailwind
colors: {
  custom: {
    50: '#865995',
    500: '#52126a',
    950: '#000000',
  },
}
SCSS
$custom: #52126a;
$custom-light: #865995;
$custom-dark: #000000;
JSON
{
  "hex": "#52126a",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 283.636,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33879,
    "c": 0.14591,
    "h": 314.5
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#52126A
secondary
#54A236
accent
#EE3A6B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52126A

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

Preview Lab → · Contrast checker → · Palette generator →

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