#52125A#52125A

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

Color values

HEX#52125A
RGBrgb(82, 18, 90)
HSLhsl(293, 67%, 21%)
HSVhsv(293, 80%, 35%)
CMYKcmyk(8.9%, 80%, 0%, 64.7%)
CIE-LABlab(19.90, 39.12, -28.19)
CIE-LCHlch(19.90, 48.22, 324.23°)
OKLaboklab(32.67% 0.1045 -0.0787)
OKLCHoklch(32.67% 0.131 323)
XYZxyz(5.5413, 2.9650, 9.9513)
Luminance0.0296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52125A #1A5A12
analogous
#2E125A #52125A #5A123E
triadic
#52125A #5A5212 #125A52
tetradic
#52125A #5A2E12 #1A5A12 #123E5A
square
#52125A #5A2E12 #1A5A12 #123E5A
split-complementary
#52125A #3E5A12 #125A2E
monochromatic
#17051A #240827 #52125A #801C8D #AF26C0

Accessibility & contrast

On white

13.18
#52125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#52125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52125A
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52125A#FFFFFF#000000##FFFFFF
##52125A1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#1E3358
Tritanopia (blue-blind)
#532035
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #52125a;
/* rgb */ color: rgb(82, 18, 90);
/* oklch */ color: oklch(32.7% 0.131 323.0);
Tailwind
colors: {
  custom: {
    50: '#855889',
    500: '#52125a',
    950: '#000000',
  },
}
SCSS
$custom: #52125a;
$custom-light: #855889;
$custom-dark: #000000;
JSON
{
  "hex": "#52125a",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 293.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32669,
    "c": 0.13084,
    "h": 323
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#52125A
secondary
#409335
accent
#EA3E51
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #52125A

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

Preview Lab → · Contrast checker → · Palette generator →

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