#52128F#52128F

#52128F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.182 H 300.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#52128F
RGBrgb(82, 18, 143)
HSLhsl(271, 78%, 32%)
HSVhsv(271, 87%, 56%)
CMYKcmyk(42.7%, 87.4%, 0%, 43.9%)
CIE-LABlab(24.35, 50.99, -55.04)
CIE-LCHlch(24.35, 75.03, 312.81°)
OKLaboklab(37.16% 0.0909 -0.1575)
OKLCHoklch(37.16% 0.182 300)
XYZxyz(8.6527, 4.2095, 26.3379)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52128F #4F8F12
analogous
#14128F #52128F #8F128E
triadic
#52128F #8F5212 #128F52
tetradic
#52128F #8F1412 #4F8F12 #128E8F
square
#52128F #8F1412 #4F8F12 #128E8F
split-complementary
#52128F #8E8F12 #128F14
monochromatic
#140422 #330B59 #52128F #7119C5 #9036E6

Accessibility & contrast

On white

11.40
#52128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#52128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52128F
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52128F#FFFFFF#000000##FFFFFF
##52128F1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#433854
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52128f;
/* rgb */ color: rgb(82, 18, 143);
/* oklch */ color: oklch(37.2% 0.182 300.0);
Tailwind
colors: {
  custom: {
    50: '#8a5bb1',
    500: '#52128f',
    950: '#000000',
  },
}
SCSS
$custom: #52128f;
$custom-light: #8a5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#52128f",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 270.72,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37158,
    "c": 0.1819,
    "h": 300
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#52128F
secondary
#7DC33A
accent
#F43492
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0411
muted
#7D7980

Preview Lab

Preview with #52128F

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

Preview Lab → · Contrast checker → · Palette generator →

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