#52127A#52127A

#52127A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.161 H 307.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#52127A
RGBrgb(82, 18, 122)
HSLhsl(277, 74%, 27%)
HSVhsv(277, 85%, 48%)
CMYKcmyk(32.8%, 85.2%, 0%, 52.2%)
CIE-LABlab(22.41, 46.06, -45.00)
CIE-LCHlch(22.41, 64.39, 315.67°)
OKLaboklab(35.23% 0.0982 -0.1281)
OKLCHoklch(35.23% 0.161 307.5)
XYZxyz(7.2081, 3.6317, 18.7298)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52127A #3A7A12
analogous
#1E127A #52127A #7A126E
triadic
#52127A #7A5212 #127A52
tetradic
#52127A #7A1E12 #3A7A12 #126E7A
square
#52127A #7A1E12 #3A7A12 #126E7A
split-complementary
#52127A #6E7A12 #127A1E
monochromatic
#12041B #2E0A45 #52127A #761AAF #9827DF

Accessibility & contrast

On white

12.16
#52127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#52127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52127A
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52127A#FFFFFF#000000##FFFFFF
##52127A1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#4B2E47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52127a;
/* rgb */ color: rgb(82, 18, 122);
/* oklch */ color: oklch(35.2% 0.161 307.5);
Tailwind
colors: {
  custom: {
    50: '#875aa1',
    500: '#52127a',
    950: '#000000',
  },
}
SCSS
$custom: #52127a;
$custom-light: #875aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#52127a",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 276.923,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.16136,
    "h": 307.5
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#52127A
secondary
#66B038
accent
#F1377E
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52127A

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

Preview Lab → · Contrast checker → · Palette generator →

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