#52146B#52146B

#52146B is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.145 H 313.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#52146B
RGBrgb(82, 20, 107)
HSLhsl(283, 69%, 25%)
HSVhsv(283, 81%, 42%)
CMYKcmyk(23.4%, 81.3%, 0%, 58%)
CIE-LABlab(21.42, 41.96, -36.96)
CIE-LCHlch(21.42, 55.91, 318.63°)
OKLaboklab(34.14% 0.1002 -0.1044)
OKLCHoklch(34.14% 0.145 313.8)
XYZxyz(6.3832, 3.3559, 14.2186)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52146B #2D6B14
analogous
#27146B #52146B #6B1458
triadic
#52146B #6B5214 #146B52
tetradic
#52146B #6B2714 #2D6B14 #14586B
square
#52146B #6B2714 #2D6B14 #14586B
split-complementary
#52146B #586B14 #146B27
monochromatic
#14051A #2A0A37 #52146B #7A1E9F #A127D2

Accessibility & contrast

On white

12.57
#52146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#52146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52146B
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52146B#FFFFFF#000000##FFFFFF
##52146B1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#0B3569
Tritanopia (blue-blind)
#4F283F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52146b;
/* rgb */ color: rgb(82, 20, 107);
/* oklch */ color: oklch(34.1% 0.145 313.8);
Tailwind
colors: {
  custom: {
    50: '#865a96',
    500: '#52146b',
    950: '#000000',
  },
}
SCSS
$custom: #52146b;
$custom-light: #865a96;
$custom-dark: #000000;
JSON
{
  "hex": "#52146b",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 282.759,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34138,
    "c": 0.14475,
    "h": 313.8
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#52146B
secondary
#57A239
accent
#EB3C6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52146B

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

Preview Lab → · Contrast checker → · Palette generator →

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