#541252#541252

#541252 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.125 H 329.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#541252
RGBrgb(84, 18, 82)
HSLhsl(302, 65%, 20%)
HSVhsv(302, 79%, 33%)
CMYKcmyk(0%, 78.6%, 2.4%, 67.1%)
CIE-LABlab(19.75, 38.07, -23.03)
CIE-LCHlch(19.75, 44.50, 328.82°)
OKLaboklab(32.46% 0.1072 -0.0637)
OKLCHoklch(32.46% 0.125 329.3)
XYZxyz(5.3954, 2.9270, 8.2618)
Luminance0.0293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541252 #125414
analogous
#351254 #541252 #541231
triadic
#541252 #525412 #125254
tetradic
#541252 #543512 #125414 #123154
square
#541252 #543512 #125414 #123154
split-complementary
#541252 #315412 #125435
monochromatic
#190519 #220721 #541252 #861D83 #B928B4

Accessibility & contrast

On white

13.25
#541252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#541252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541252
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541252#FFFFFF#000000##FFFFFF
##5412521.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092A54
Deuteranopia (green-blind)
#253350
Tritanopia (blue-blind)
#571B31
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #541252;
/* rgb */ color: rgb(84, 18, 82);
/* oklch */ color: oklch(32.5% 0.125 329.3);
Tailwind
colors: {
  custom: {
    50: '#875883',
    500: '#541252',
    950: '#000000',
  },
}
SCSS
$custom: #541252;
$custom-light: #875883;
$custom-dark: #000000;
JSON
{
  "hex": "#541252",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 301.818,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.32462,
    "c": 0.12471,
    "h": 329.3
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#541252
secondary
#358D38
accent
#E84540
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #541252

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

Preview Lab → · Contrast checker → · Palette generator →

#541252 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva