#52154F#52154F

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

Color values

HEX#52154F
RGBrgb(82, 21, 79)
HSLhsl(303, 59%, 20%)
HSVhsv(303, 74%, 32%)
CMYKcmyk(0%, 74.4%, 3.7%, 67.8%)
CIE-LABlab(19.62, 35.78, -21.23)
CIE-LCHlch(19.62, 41.61, 329.32°)
OKLaboklab(32.24% 0.1012 -0.0585)
OKLCHoklch(32.24% 0.117 330)
XYZxyz(5.1591, 2.8951, 7.6827)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52154F #155218
analogous
#361552 #52154F #521530
triadic
#52154F #4F5215 #154F52
tetradic
#52154F #523615 #155218 #153052
square
#52154F #523615 #155218 #153052
split-complementary
#52154F #305215 #155236
monochromatic
#180617 #210920 #52154F #83217E #B32EAD

Accessibility & contrast

On white

13.30
#52154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52154F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52154F#FFFFFF#000000##FFFFFF
##52154F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#26324D
Tritanopia (blue-blind)
#551C30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #52154f;
/* rgb */ color: rgb(82, 21, 79);
/* oklch */ color: oklch(32.2% 0.117 330.0);
Tailwind
colors: {
  custom: {
    50: '#855980',
    500: '#52154f',
    950: '#000000',
  },
}
SCSS
$custom: #52154f;
$custom-light: #855980;
$custom-dark: #000000;
JSON
{
  "hex": "#52154f",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 302.951,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32237,
    "c": 0.11694,
    "h": 330
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#52154F
secondary
#398A3D
accent
#E24D45
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #52154F

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

Preview Lab → · Contrast checker → · Palette generator →

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