#52127C#52127C

#52127C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.163 H 306.7°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#52127C
RGBrgb(82, 18, 124)
HSLhsl(276, 75%, 28%)
HSVhsv(276, 85%, 49%)
CMYKcmyk(33.9%, 85.5%, 0%, 51.4%)
CIE-LABlab(22.59, 46.52, -45.99)
CIE-LCHlch(22.59, 65.41, 315.33°)
OKLaboklab(35.4% 0.0976 -0.131)
OKLCHoklch(35.4% 0.163 306.7)
XYZxyz(7.3333, 3.6818, 19.3892)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52127C #3C7C12
analogous
#1D127C #52127C #7C1271
triadic
#52127C #7C5212 #127C52
tetradic
#52127C #7C1D12 #3C7C12 #12717C
square
#52127C #7C1D12 #3C7C12 #12717C
split-complementary
#52127C #717C12 #127C1D
monochromatic
#12041B #2F0A47 #52127C #751AB1 #9729E0

Accessibility & contrast

On white

12.09
#52127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52127C
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52127C#FFFFFF#000000##FFFFFF
##52127C1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#4B2F49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52127c;
/* rgb */ color: rgb(82, 18, 124);
/* oklch */ color: oklch(35.4% 0.163 306.7);
Tailwind
colors: {
  custom: {
    50: '#885aa3',
    500: '#52127c',
    950: '#000000',
  },
}
SCSS
$custom: #52127c;
$custom-light: #885aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#52127c",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 276.226,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35401,
    "c": 0.1633,
    "h": 306.7
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#52127C
secondary
#68B238
accent
#F13781
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52127C

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

Preview Lab → · Contrast checker → · Palette generator →

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