#52125C#52125C

#52125C is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.133 H 321.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#52125C
RGBrgb(82, 18, 92)
HSLhsl(292, 67%, 22%)
HSVhsv(292, 80%, 36%)
CMYKcmyk(10.9%, 80.4%, 0%, 63.9%)
CIE-LABlab(20.04, 39.52, -29.30)
CIE-LCHlch(20.04, 49.20, 323.45°)
OKLaboklab(32.81% 0.1043 -0.082)
OKLCHoklch(32.81% 0.133 321.8)
XYZxyz(5.6275, 2.9995, 10.4057)
Luminance0.0300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52125C #1C5C12
analogous
#2D125C #52125C #5C1241
triadic
#52125C #5C5212 #125C52
tetradic
#52125C #5C2D12 #1C5C12 #12415C
square
#52125C #5C2D12 #1C5C12 #12415C
split-complementary
#52125C #415C12 #125C2D
monochromatic
#17051A #240829 #52125C #801C8F #AD26C2

Accessibility & contrast

On white

13.13
#52125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#52125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52125C
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52125C#FFFFFF#000000##FFFFFF
##52125C1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#1C335A
Tritanopia (blue-blind)
#532036
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52125c;
/* rgb */ color: rgb(82, 18, 92);
/* oklch */ color: oklch(32.8% 0.133 321.8);
Tailwind
colors: {
  custom: {
    50: '#86588a',
    500: '#52125c',
    950: '#000000',
  },
}
SCSS
$custom: #52125c;
$custom-light: #86588a;
$custom-dark: #000000;
JSON
{
  "hex": "#52125c",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 291.892,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32812,
    "c": 0.13269,
    "h": 321.8
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#52125C
secondary
#429435
accent
#EA3E55
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52125C

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

Preview Lab → · Contrast checker → · Palette generator →

#52125C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva