#52146C#52146C

#52146C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.146 H 313.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#52146C
RGBrgb(82, 20, 108)
HSLhsl(282, 69%, 25%)
HSVhsv(282, 81%, 42%)
CMYKcmyk(24.1%, 81.5%, 0%, 57.6%)
CIE-LABlab(21.49, 42.18, -37.48)
CIE-LCHlch(21.49, 56.43, 318.38°)
OKLaboklab(34.22% 0.1 -0.106)
OKLCHoklch(34.22% 0.146 313.3)
XYZxyz(6.4361, 3.3771, 14.4973)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52146C #2E6C14
analogous
#26146C #52146C #6C145A
triadic
#52146C #6C5214 #146C52
tetradic
#52146C #6C2614 #2E6C14 #145A6C
square
#52146C #6C2614 #2E6C14 #145A6C
split-complementary
#52146C #5A6C14 #146C26
monochromatic
#14051A #2B0A38 #52146C #791EA0 #A027D3

Accessibility & contrast

On white

12.53
#52146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52146C
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52146C#FFFFFF#000000##FFFFFF
##52146C1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#09356A
Tritanopia (blue-blind)
#4F2940
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52146c;
/* rgb */ color: rgb(82, 20, 108);
/* oklch */ color: oklch(34.2% 0.146 313.3);
Tailwind
colors: {
  custom: {
    50: '#865a97',
    500: '#52146c',
    950: '#000000',
  },
}
SCSS
$custom: #52146c;
$custom-light: #865a97;
$custom-dark: #000000;
JSON
{
  "hex": "#52146c",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 282.273,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34218,
    "c": 0.14574,
    "h": 313.3
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#52146C
secondary
#58A339
accent
#EC3C70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52146C

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

Preview Lab → · Contrast checker → · Palette generator →

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