#521148#521148

#521148 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.4% C 0.116 H 335.0°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#521148
RGBrgb(82, 17, 72)
HSLhsl(309, 66%, 19%)
HSVhsv(309, 79%, 32%)
CMYKcmyk(0%, 79.3%, 12.2%, 67.8%)
CIE-LABlab(18.64, 36.14, -17.99)
CIE-LCHlch(18.64, 40.37, 333.54°)
OKLaboklab(31.4% 0.1054 -0.0491)
OKLCHoklch(31.4% 0.116 335)
XYZxyz(4.8499, 2.6630, 6.3882)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521148 #11521B
analogous
#3C1152 #521148 #521128
triadic
#521148 #485211 #114852
tetradic
#521148 #523C11 #11521B #112852
square
#521148 #523C11 #11521B #112852
split-complementary
#521148 #285211 #11523C
monochromatic
#190516 #1F061B #521148 #851C75 #B726A1

Accessibility & contrast

On white

13.70
#521148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#521148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521148
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521148#FFFFFF#000000##FFFFFF
##5211481.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11274A
Deuteranopia (green-blind)
#283146
Tritanopia (blue-blind)
#56162B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #521148;
/* rgb */ color: rgb(82, 17, 72);
/* oklch */ color: oklch(31.4% 0.116 335.0);
Tailwind
colors: {
  custom: {
    50: '#85577b',
    500: '#521148',
    950: '#000000',
  },
}
SCSS
$custom: #521148;
$custom-light: #85577b;
$custom-dark: #000000;
JSON
{
  "hex": "#521148",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 309.231,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.314,
    "c": 0.1163,
    "h": 335
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#521148
secondary
#348B41
accent
#E9593F
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #521148

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

Preview Lab → · Contrast checker → · Palette generator →

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