#52187F#52187F

#52187F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.161 H 304.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#52187F
RGBrgb(82, 24, 127)
HSLhsl(274, 68%, 30%)
HSVhsv(274, 81%, 50%)
CMYKcmyk(35.4%, 81.1%, 0%, 50.2%)
CIE-LABlab(23.60, 45.04, -46.24)
CIE-LCHlch(23.60, 64.55, 314.25°)
OKLaboklab(36.19% 0.0919 -0.1317)
OKLCHoklch(36.19% 0.161 304.9)
XYZxyz(7.6362, 3.9795, 20.4404)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52187F #457F18
analogous
#1E187F #52187F #7F1879
triadic
#52187F #7F5218 #187F52
tetradic
#52187F #7F1E18 #457F18 #18797F
square
#52187F #7F1E18 #457F18 #18797F
split-complementary
#52187F #797F18 #187F1E
monochromatic
#11051A #310E4C #52187F #7322B2 #9338D9

Accessibility & contrast

On white

11.69
#52187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#52187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52187F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52187F#FFFFFF#000000##FFFFFF
##52187F1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#49334B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52187f;
/* rgb */ color: rgb(82, 24, 127);
/* oklch */ color: oklch(36.2% 0.161 304.9);
Tailwind
colors: {
  custom: {
    50: '#885da5',
    500: '#52187f',
    950: '#000000',
  },
}
SCSS
$custom: #52187f;
$custom-light: #885da5;
$custom-dark: #000000;
JSON
{
  "hex": "#52187f",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 273.786,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36189,
    "c": 0.16062,
    "h": 304.9
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#52187F
secondary
#72B33F
accent
#EB3D89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52187F

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

Preview Lab → · Contrast checker → · Palette generator →

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