#521154#521154

#521154 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.127 H 326.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#521154
RGBrgb(82, 17, 84)
HSLhsl(298, 66%, 20%)
HSVhsv(298, 80%, 33%)
CMYKcmyk(2.4%, 79.8%, 0%, 67.1%)
CIE-LABlab(19.37, 38.32, -25.01)
CIE-LCHlch(19.37, 45.76, 326.87°)
OKLaboklab(32.16% 0.1058 -0.0694)
OKLCHoklch(32.16% 0.127 326.7)
XYZxyz(5.2803, 2.8352, 8.6549)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521154 #135411
analogous
#311154 #521154 #541135
triadic
#521154 #545211 #115452
tetradic
#521154 #543111 #135411 #113554
square
#521154 #543111 #135411 #113554
split-complementary
#521154 #355411 #115431
monochromatic
#190519 #200721 #521154 #841B87 #B526BA

Accessibility & contrast

On white

13.40
#521154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#521154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521154
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521154#FFFFFF#000000##FFFFFF
##5211541.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022A56
Deuteranopia (green-blind)
#223252
Tritanopia (blue-blind)
#541C31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521154;
/* rgb */ color: rgb(82, 17, 84);
/* oklch */ color: oklch(32.2% 0.127 326.7);
Tailwind
colors: {
  custom: {
    50: '#855784',
    500: '#521154',
    950: '#000000',
  },
}
SCSS
$custom: #521154;
$custom-light: #855784;
$custom-dark: #000000;
JSON
{
  "hex": "#521154",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 298.209,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.3216,
    "c": 0.12658,
    "h": 326.7
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

primary
#521154
secondary
#368D34
accent
#E93F44
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #521154

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

Preview Lab → · Contrast checker → · Palette generator →

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