#52147F#52147F

#52147F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.164 H 305.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#52147F
RGBrgb(82, 20, 127)
HSLhsl(275, 73%, 29%)
HSVhsv(275, 84%, 50%)
CMYKcmyk(35.4%, 84.3%, 0%, 50.2%)
CIE-LABlab(23.09, 46.54, -47.07)
CIE-LCHlch(23.09, 66.20, 314.67°)
OKLaboklab(35.83% 0.0951 -0.1342)
OKLCHoklch(35.83% 0.164 305.3)
XYZxyz(7.5597, 3.8265, 20.4149)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52147F #417F14
analogous
#1C147F #52147F #7F1477
triadic
#52147F #7F5214 #147F52
tetradic
#52147F #7F1C14 #417F14 #14777F
square
#52147F #7F1C14 #417F14 #14777F
split-complementary
#52147F #777F14 #147F1C
monochromatic
#11041A #300C4A #52147F #741CB4 #952FDE

Accessibility & contrast

On white

11.90
#52147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#52147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52147F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52147F#FFFFFF#000000##FFFFFF
##52147F1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#49314B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52147f;
/* rgb */ color: rgb(82, 20, 127);
/* oklch */ color: oklch(35.8% 0.164 305.3);
Tailwind
colors: {
  custom: {
    50: '#885ba5',
    500: '#52147f',
    950: '#000000',
  },
}
SCSS
$custom: #52147f;
$custom-light: #885ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#52147f",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 274.766,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3583,
    "c": 0.16448,
    "h": 305.3
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#52147F
secondary
#6EB43B
accent
#EF3885
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52147F

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

Preview Lab → · Contrast checker → · Palette generator →

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