#52118E#52118E

#52118E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 37.0% C 0.182 H 300.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#52118E
RGBrgb(82, 17, 142)
HSLhsl(271, 79%, 31%)
HSVhsv(271, 88%, 56%)
CMYKcmyk(42.3%, 88%, 0%, 44.3%)
CIE-LABlab(24.15, 51.06, -54.75)
CIE-LCHlch(24.15, 74.86, 313.00°)
OKLaboklab(36.99% 0.0919 -0.1567)
OKLCHoklch(36.99% 0.182 300.4)
XYZxyz(8.5614, 4.1476, 25.9355)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52118E #4D8E11
analogous
#13118E #52118E #8E118B
triadic
#52118E #8E5211 #118E52
tetradic
#52118E #8E1311 #4D8E11 #118B8E
square
#52118E #8E1311 #4D8E11 #118B8E
split-complementary
#52118E #8B8E11 #118E13
monochromatic
#130421 #320A57 #52118E #7218C5 #9033E7

Accessibility & contrast

On white

11.48
#52118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#52118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52118E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52118E#FFFFFF#000000##FFFFFF
##52118E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#443753
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52118e;
/* rgb */ color: rgb(82, 17, 142);
/* oklch */ color: oklch(37.0% 0.182 300.4);
Tailwind
colors: {
  custom: {
    50: '#8a5bb0',
    500: '#52118e',
    950: '#000000',
  },
}
SCSS
$custom: #52118e;
$custom-light: #8a5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#52118e",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 271.2,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36992,
    "c": 0.18164,
    "h": 300.4
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#52118E
secondary
#7BC238
accent
#F53390
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #52118E

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

Preview Lab → · Contrast checker → · Palette generator →

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