#52186E#52186E

#52186E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.143 H 312.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#52186E
RGBrgb(82, 24, 110)
HSLhsl(280, 64%, 26%)
HSVhsv(280, 78%, 43%)
CMYKcmyk(25.5%, 78.2%, 0%, 56.9%)
CIE-LABlab(22.21, 41.04, -37.63)
CIE-LCHlch(22.21, 55.68, 317.48°)
OKLaboklab(34.77% 0.0958 -0.1064)
OKLCHoklch(34.77% 0.143 312)
XYZxyz(6.6203, 3.5731, 15.0898)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52186E #346E18
analogous
#27186E #52186E #6E185F
triadic
#52186E #6E5218 #186E52
tetradic
#52186E #6E2718 #346E18 #185F6E
square
#52186E #6E2718 #346E18 #185F6E
split-complementary
#52186E #5F6E18 #186E27
monochromatic
#130519 #2D0D3C #52186E #7723A0 #9D2FD2

Accessibility & contrast

On white

12.25
#52186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#52186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52186E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52186E#FFFFFF#000000##FFFFFF
##52186E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#0B366C
Tritanopia (blue-blind)
#4F2C42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52186e;
/* rgb */ color: rgb(82, 24, 110);
/* oklch */ color: oklch(34.8% 0.143 312.0);
Tailwind
colors: {
  custom: {
    50: '#865c98',
    500: '#52186e',
    950: '#000000',
  },
}
SCSS
$custom: #52186e;
$custom-light: #865c98;
$custom-dark: #000000;
JSON
{
  "hex": "#52186e",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 280.465,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34769,
    "c": 0.14317,
    "h": 312
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#52186E
secondary
#5FA43E
accent
#E74177
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52186E

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

Preview Lab → · Contrast checker → · Palette generator →

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