#52125B#52125B

#52125B is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.132 H 322.4°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#52125B
RGBrgb(82, 18, 91)
HSLhsl(293, 67%, 21%)
HSVhsv(293, 80%, 36%)
CMYKcmyk(9.9%, 80.2%, 0%, 64.3%)
CIE-LABlab(19.97, 39.32, -28.74)
CIE-LCHlch(19.97, 48.71, 323.83°)
OKLaboklab(32.74% 0.1044 -0.0804)
OKLCHoklch(32.74% 0.132 322.4)
XYZxyz(5.5841, 2.9821, 10.1770)
Luminance0.0298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52125B #1B5B12
analogous
#2E125B #52125B #5B1240
triadic
#52125B #5B5212 #125B52
tetradic
#52125B #5B2E12 #1B5B12 #12405B
square
#52125B #5B2E12 #1B5B12 #12405B
split-complementary
#52125B #405B12 #125B2E
monochromatic
#17051A #240828 #52125B #801C8E #AE26C1

Accessibility & contrast

On white

13.15
#52125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52125B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52125B#FFFFFF#000000##FFFFFF
##52125B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52125b;
/* rgb */ color: rgb(82, 18, 91);
/* oklch */ color: oklch(32.7% 0.132 322.4);
Tailwind
colors: {
  custom: {
    50: '#85588a',
    500: '#52125b',
    950: '#000000',
  },
}
SCSS
$custom: #52125b;
$custom-light: #85588a;
$custom-dark: #000000;
JSON
{
  "hex": "#52125b",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 292.603,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3274,
    "c": 0.13177,
    "h": 322.4
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#52125B
secondary
#419335
accent
#EA3E53
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52125B

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

Preview Lab → · Contrast checker → · Palette generator →

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