#52125E#52125E

#52125E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 33.0% C 0.135 H 320.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#52125E
RGBrgb(82, 18, 94)
HSLhsl(291, 68%, 22%)
HSVhsv(291, 81%, 37%)
CMYKcmyk(12.8%, 80.9%, 0%, 63.1%)
CIE-LABlab(20.18, 39.93, -30.40)
CIE-LCHlch(20.18, 50.19, 322.72°)
OKLaboklab(32.96% 0.1041 -0.0852)
OKLCHoklch(32.96% 0.135 320.7)
XYZxyz(5.7161, 3.0349, 10.8722)
Luminance0.0303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52125E #1E5E12
analogous
#2C125E #52125E #5E1244
triadic
#52125E #5E5212 #125E52
tetradic
#52125E #5E2C12 #1E5E12 #12445E
square
#52125E #5E2C12 #1E5E12 #12445E
split-complementary
#52125E #445E12 #125E2C
monochromatic
#16051A #25082B #52125E #7F1C91 #AC26C5

Accessibility & contrast

On white

13.07
#52125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#52125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52125E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52125E#FFFFFF#000000##FFFFFF
##52125E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#1B335C
Tritanopia (blue-blind)
#532137
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52125e;
/* rgb */ color: rgb(82, 18, 94);
/* oklch */ color: oklch(33.0% 0.135 320.7);
Tailwind
colors: {
  custom: {
    50: '#86588c',
    500: '#52125e',
    950: '#000000',
  },
}
SCSS
$custom: #52125e;
$custom-light: #86588c;
$custom-dark: #000000;
JSON
{
  "hex": "#52125e",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 290.526,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32957,
    "c": 0.13455,
    "h": 320.7
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#52125E
secondary
#459635
accent
#EB3D58
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52125E

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

Preview Lab → · Contrast checker → · Palette generator →

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