#52127E#52127E

#52127E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.165 H 305.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#52127E
RGBrgb(82, 18, 126)
HSLhsl(276, 75%, 28%)
HSVhsv(276, 86%, 49%)
CMYKcmyk(34.9%, 85.7%, 0%, 50.6%)
CIE-LABlab(22.77, 46.98, -46.97)
CIE-LCHlch(22.77, 66.43, 315.01°)
OKLaboklab(35.58% 0.0969 -0.1338)
OKLCHoklch(35.58% 0.165 305.9)
XYZxyz(7.4610, 3.7329, 20.0621)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52127E #3E7E12
analogous
#1C127E #52127E #7E1274
triadic
#52127E #7E5212 #127E52
tetradic
#52127E #7E1C12 #3E7E12 #12747E
square
#52127E #7E1C12 #3E7E12 #12747E
split-complementary
#52127E #747E12 #127E1C
monochromatic
#11041B #2F0A48 #52127E #751AB4 #962AE1

Accessibility & contrast

On white

12.02
#52127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#52127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52127E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52127E#FFFFFF#000000##FFFFFF
##52127E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#4A304A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52127e;
/* rgb */ color: rgb(82, 18, 126);
/* oklch */ color: oklch(35.6% 0.165 305.9);
Tailwind
colors: {
  custom: {
    50: '#885aa4',
    500: '#52127e',
    950: '#000000',
  },
}
SCSS
$custom: #52127e;
$custom-light: #885aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#52127e",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 275.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3558,
    "c": 0.16525,
    "h": 305.9
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#52127E
secondary
#6AB438
accent
#F23683
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52127E

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

Preview Lab → · Contrast checker → · Palette generator →

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