#52146E#52146E

#52146E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.148 H 312.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#52146E
RGBrgb(82, 20, 110)
HSLhsl(281, 69%, 25%)
HSVhsv(281, 82%, 43%)
CMYKcmyk(25.5%, 81.8%, 0%, 56.9%)
CIE-LABlab(21.65, 42.63, -38.52)
CIE-LCHlch(21.65, 57.46, 317.90°)
OKLaboklab(34.38% 0.0996 -0.109)
OKLCHoklch(34.38% 0.148 312.4)
XYZxyz(6.5438, 3.4201, 15.0643)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52146E #306E14
analogous
#25146E #52146E #6E145D
triadic
#52146E #6E5214 #146E52
tetradic
#52146E #6E2514 #306E14 #145D6E
square
#52146E #6E2514 #306E14 #145D6E
split-complementary
#52146E #5D6E14 #146E25
monochromatic
#13051A #2B0B3A #52146E #791DA2 #9F27D6

Accessibility & contrast

On white

12.47
#52146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#52146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52146E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52146E#FFFFFF#000000##FFFFFF
##52146E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#05356C
Tritanopia (blue-blind)
#4F2A41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52146e;
/* rgb */ color: rgb(82, 20, 110);
/* oklch */ color: oklch(34.4% 0.148 312.4);
Tailwind
colors: {
  custom: {
    50: '#865a98',
    500: '#52146e',
    950: '#000000',
  },
}
SCSS
$custom: #52146e;
$custom-light: #865a98;
$custom-dark: #000000;
JSON
{
  "hex": "#52146e",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 281.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34379,
    "c": 0.14769,
    "h": 312.4
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#52146E
secondary
#5BA539
accent
#EC3C73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52146E

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

Preview Lab → · Contrast checker → · Palette generator →

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