#521238#521238

#521238 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.7% C 0.103 H 348.5°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#521238
RGBrgb(82, 18, 56)
HSLhsl(324, 64%, 20%)
HSVhsv(324, 78%, 32%)
CMYKcmyk(0%, 78%, 31.7%, 67.8%)
CIE-LABlab(17.98, 33.22, -7.87)
CIE-LCHlch(17.98, 34.14, 346.67°)
OKLaboklab(30.65% 0.1012 -0.0207)
OKLCHoklch(30.65% 0.103 348.5)
XYZxyz(4.4100, 2.5125, 3.9933)
Luminance0.0251 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521238 #12522C
analogous
#4C1252 #521238 #521218
triadic
#521238 #385212 #123852
tetradic
#521238 #524C12 #12522C #121852
square
#521238 #524C12 #12522C #121852
split-complementary
#521238 #185212 #12524C
monochromatic
#190611 #200716 #521238 #841D5A #B6287D

Accessibility & contrast

On white

13.98
#521238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#521238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521238
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521238#FFFFFF#000000##FFFFFF
##5212381.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2539
Deuteranopia (green-blind)
#2E3037
Tritanopia (blue-blind)
#580F23
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #521238;
/* rgb */ color: rgb(82, 18, 56);
/* oklch */ color: oklch(30.7% 0.103 348.5);
Tailwind
colors: {
  custom: {
    50: '#86566e',
    500: '#521238',
    950: '#000000',
  },
}
SCSS
$custom: #521238;
$custom-light: #86566e;
$custom-dark: #000000;
JSON
{
  "hex": "#521238",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 324.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30653,
    "c": 0.10325,
    "h": 348.5
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#521238
secondary
#358B58
accent
#E78441
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0B0307
muted
#7C787A

Preview Lab

Preview with #521238

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

Preview Lab → · Contrast checker → · Palette generator →

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