#52154E#52154E

#52154E is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.2% C 0.116 H 330.7°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#52154E
RGBrgb(82, 21, 78)
HSLhsl(304, 59%, 20%)
HSVhsv(304, 74%, 32%)
CMYKcmyk(0%, 74.4%, 4.9%, 67.8%)
CIE-LABlab(19.56, 35.60, -20.65)
CIE-LCHlch(19.56, 41.15, 329.89°)
OKLaboklab(32.17% 0.1012 -0.0568)
OKLCHoklch(32.17% 0.116 330.7)
XYZxyz(5.1230, 2.8806, 7.4924)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52154E #155219
analogous
#371552 #52154E #521530
triadic
#52154E #4E5215 #154E52
tetradic
#52154E #523715 #155219 #153052
square
#52154E #523715 #155219 #153052
split-complementary
#52154E #305215 #155237
monochromatic
#180617 #210920 #52154E #83217C #B32EAB

Accessibility & contrast

On white

13.32
#52154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#52154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52154E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52154E#FFFFFF#000000##FFFFFF
##52154E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#27324C
Tritanopia (blue-blind)
#551C2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #52154e;
/* rgb */ color: rgb(82, 21, 78);
/* oklch */ color: oklch(32.2% 0.116 330.7);
Tailwind
colors: {
  custom: {
    50: '#855980',
    500: '#52154e',
    950: '#000000',
  },
}
SCSS
$custom: #52154e;
$custom-light: #855980;
$custom-dark: #000000;
JSON
{
  "hex": "#52154e",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 303.934,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32175,
    "c": 0.11605,
    "h": 330.7
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#52154E
secondary
#398A3E
accent
#E25045
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #52154E

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

Preview Lab → · Contrast checker → · Palette generator →

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