#52127D#52127D

#52127D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.164 H 306.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#52127D
RGBrgb(82, 18, 125)
HSLhsl(276, 75%, 28%)
HSVhsv(276, 86%, 49%)
CMYKcmyk(34.4%, 85.6%, 0%, 51%)
CIE-LABlab(22.68, 46.75, -46.48)
CIE-LCHlch(22.68, 65.92, 315.17°)
OKLaboklab(35.49% 0.0973 -0.1324)
OKLCHoklch(35.49% 0.164 306.3)
XYZxyz(7.3968, 3.7072, 19.7239)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52127D #3D7D12
analogous
#1D127D #52127D #7D1272
triadic
#52127D #7D5212 #127D52
tetradic
#52127D #7D1D12 #3D7D12 #12727D
square
#52127D #7D1D12 #3D7D12 #12727D
split-complementary
#52127D #727D12 #127D1D
monochromatic
#12041B #2F0A48 #52127D #751AB2 #9729E0

Accessibility & contrast

On white

12.06
#52127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52127D
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52127D#FFFFFF#000000##FFFFFF
##52127D1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#4A3049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52127d;
/* rgb */ color: rgb(82, 18, 125);
/* oklch */ color: oklch(35.5% 0.164 306.3);
Tailwind
colors: {
  custom: {
    50: '#885aa3',
    500: '#52127d',
    950: '#000000',
  },
}
SCSS
$custom: #52127d;
$custom-light: #885aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#52127d",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 275.888,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.16429,
    "h": 306.3
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#52127D
secondary
#69B338
accent
#F13682
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52127D

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

Preview Lab → · Contrast checker → · Palette generator →

#52127D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva