#520F27#520F27

#520F27 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.7% C 0.099 H 4.2°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#520F27
RGBrgb(82, 15, 39)
HSLhsl(339, 69%, 19%)
HSVhsv(339, 82%, 32%)
CMYKcmyk(0%, 81.7%, 52.4%, 67.8%)
CIE-LABlab(16.91, 32.33, 2.69)
CIE-LCHlch(16.91, 32.44, 4.76°)
OKLaboklab(29.66% 0.099 0.0072)
OKLCHoklch(29.66% 0.099 4.2)
XYZxyz(4.0170, 2.2825, 2.1481)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F27 #0F523A
analogous
#520F49 #520F27 #52190F
triadic
#520F27 #27520F #0F2752
tetradic
#520F27 #49520F #0F523A #190F52
square
#520F27 #49520F #0F523A #190F52
split-complementary
#520F27 #0F5219 #0F4952
monochromatic
#1A050C #1E060E #520F27 #861840 #B92258

Accessibility & contrast

On white

14.42
#520F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#520F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #520F27
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F27#FFFFFF#000000##FFFFFF
##520F271.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2128
Deuteranopia (green-blind)
#312E25
Tritanopia (blue-blind)
#5A0319
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #520f27;
/* rgb */ color: rgb(82, 15, 39);
/* oklch */ color: oklch(29.7% 0.099 4.2);
Tailwind
colors: {
  custom: {
    50: '#875460',
    500: '#520f27',
    950: '#000000',
  },
}
SCSS
$custom: #520f27;
$custom-light: #875460;
$custom-dark: #000000;
JSON
{
  "hex": "#520f27",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 39
  },
  "hsl": {
    "h": 338.507,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29656,
    "c": 0.09921,
    "h": 4.2
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

primary
#520F27
secondary
#318C6B
accent
#ECAD3C
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #520F27

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

Preview Lab → · Contrast checker → · Palette generator →

#520F27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva