#521842#521842

#521842 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.8% C 0.101 H 340.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#521842
RGBrgb(82, 24, 66)
HSLhsl(317, 55%, 21%)
HSVhsv(317, 71%, 32%)
CMYKcmyk(0%, 70.7%, 19.5%, 67.8%)
CIE-LABlab(19.40, 32.12, -12.68)
CIE-LCHlch(19.40, 34.53, 338.46°)
OKLaboklab(31.85% 0.0955 -0.0341)
OKLCHoklch(31.85% 0.101 340.3)
XYZxyz(4.7898, 2.8409, 5.4493)
Luminance0.0284 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521842 #185228
analogous
#451852 #521842 #521825
triadic
#521842 #425218 #184252
tetradic
#521842 #524518 #185228 #182552
square
#521842 #524518 #185228 #182552
split-complementary
#521842 #255218 #185245
monochromatic
#180713 #230A1C #521842 #812668 #B1348E

Accessibility & contrast

On white

13.39
#521842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521842
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521842#FFFFFF#000000##FFFFFF
##5218421.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2943
Deuteranopia (green-blind)
#2D3241
Tritanopia (blue-blind)
#57192A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #521842;
/* rgb */ color: rgb(82, 24, 66);
/* oklch */ color: oklch(31.8% 0.101 340.3);
Tailwind
colors: {
  custom: {
    50: '#855a76',
    500: '#521842',
    950: '#000000',
  },
}
SCSS
$custom: #521842;
$custom-light: #855a76;
$custom-dark: #000000;
JSON
{
  "hex": "#521842",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 66
  },
  "hsl": {
    "h": 316.552,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.1014,
    "h": 340.3
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#521842
secondary
#3D8952
accent
#DE734A
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #521842

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

Preview Lab → · Contrast checker → · Palette generator →

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