#52107F#52107F

#52107F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.168 H 305.7°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#52107F
RGBrgb(82, 16, 127)
HSLhsl(276, 78%, 28%)
HSVhsv(276, 87%, 50%)
CMYKcmyk(35.4%, 87.4%, 0%, 50.2%)
CIE-LABlab(22.64, 47.85, -47.80)
CIE-LCHlch(22.64, 67.64, 315.03°)
OKLaboklab(35.52% 0.098 -0.1363)
OKLCHoklch(35.52% 0.168 305.7)
XYZxyz(7.4949, 3.6968, 20.3933)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52107F #3D7F10
analogous
#1B107F #52107F #7F1074
triadic
#52107F #7F5210 #107F52
tetradic
#52107F #7F1B10 #3D7F10 #10747F
square
#52107F #7F1B10 #3D7F10 #10747F
split-complementary
#52107F #747F10 #107F1B
monochromatic
#12031B #2F0949 #52107F #7517B5 #9726E4

Accessibility & contrast

On white

12.07
#52107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52107F
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52107F#FFFFFF#000000##FFFFFF
##52107F1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#4A304A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52107f;
/* rgb */ color: rgb(82, 16, 127);
/* oklch */ color: oklch(35.5% 0.168 305.7);
Tailwind
colors: {
  custom: {
    50: '#8859a5',
    500: '#52107f',
    950: '#000000',
  },
}
SCSS
$custom: #52107f;
$custom-light: #8859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#52107f",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 275.676,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35521,
    "c": 0.16785,
    "h": 305.7
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#52107F
secondary
#69B536
accent
#F43482
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52107F

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

Preview Lab → · Contrast checker → · Palette generator →

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