#52127F#52127F

#52127F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.166 H 305.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#52127F
RGBrgb(82, 18, 127)
HSLhsl(275, 75%, 28%)
HSVhsv(275, 86%, 50%)
CMYKcmyk(35.4%, 85.8%, 0%, 50.2%)
CIE-LABlab(22.86, 47.22, -47.45)
CIE-LCHlch(22.86, 66.94, 314.86°)
OKLaboklab(35.67% 0.0966 -0.1353)
OKLCHoklch(35.67% 0.166 305.5)
XYZxyz(7.5259, 3.7588, 20.4036)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52127F #3F7F12
analogous
#1B127F #52127F #7F1275
triadic
#52127F #7F5212 #127F52
tetradic
#52127F #7F1B12 #3F7F12 #12757F
square
#52127F #7F1B12 #3F7F12 #12757F
split-complementary
#52127F #757F12 #127F1B
monochromatic
#11041B #2F0A49 #52127F #751AB5 #962BE1

Accessibility & contrast

On white

11.99
#52127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52127F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52127F#FFFFFF#000000##FFFFFF
##52127F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52127f;
/* rgb */ color: rgb(82, 18, 127);
/* oklch */ color: oklch(35.7% 0.166 305.5);
Tailwind
colors: {
  custom: {
    50: '#885aa5',
    500: '#52127f',
    950: '#000000',
  },
}
SCSS
$custom: #52127f;
$custom-light: #885aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#52127f",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 275.229,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3567,
    "c": 0.16623,
    "h": 305.5
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#52127F
secondary
#6CB538
accent
#F23684
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52127F

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

Preview Lab → · Contrast checker → · Palette generator →

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