#52125F#52125F

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

Color values

HEX#52125F
RGBrgb(82, 18, 95)
HSLhsl(290, 68%, 22%)
HSVhsv(290, 81%, 37%)
CMYKcmyk(13.7%, 81.1%, 0%, 62.7%)
CIE-LABlab(20.25, 40.14, -30.95)
CIE-LCHlch(20.25, 50.69, 322.37°)
OKLaboklab(33.03% 0.104 -0.0868)
OKLCHoklch(33.03% 0.135 320.2)
XYZxyz(5.7613, 3.0530, 11.1101)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52125F #1F5F12
analogous
#2C125F #52125F #5F1246
triadic
#52125F #5F5212 #125F52
tetradic
#52125F #5F2C12 #1F5F12 #12465F
square
#52125F #5F2C12 #1F5F12 #12465F
split-complementary
#52125F #465F12 #125F2C
monochromatic
#16051A #26082C #52125F #7E1C92 #AB25C6

Accessibility & contrast

On white

13.04
#52125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52125F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52125F#FFFFFF#000000##FFFFFF
##52125F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#1A335D
Tritanopia (blue-blind)
#522238
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #52125f;
/* rgb */ color: rgb(82, 18, 95);
/* oklch */ color: oklch(33.0% 0.135 320.2);
Tailwind
colors: {
  custom: {
    50: '#86588d',
    500: '#52125f',
    950: '#000000',
  },
}
SCSS
$custom: #52125f;
$custom-light: #86588d;
$custom-dark: #000000;
JSON
{
  "hex": "#52125f",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 289.87,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33031,
    "c": 0.13548,
    "h": 320.2
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#52125F
secondary
#469736
accent
#EB3D5A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #52125F

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

Preview Lab → · Contrast checker → · Palette generator →

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