#520F26#520F26

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

Color values

HEX#520F26
RGBrgb(82, 15, 38)
HSLhsl(339, 69%, 19%)
HSVhsv(339, 82%, 32%)
CMYKcmyk(0%, 81.7%, 53.7%, 67.8%)
CIE-LABlab(16.87, 32.23, 3.37)
CIE-LCHlch(16.87, 32.41, 5.97°)
OKLaboklab(29.62% 0.0985 0.0089)
OKLCHoklch(29.62% 0.099 5.2)
XYZxyz(4.0007, 2.2760, 2.0620)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#520F26 #0F523B
analogous
#520F48 #520F26 #521A0F
triadic
#520F26 #26520F #0F2652
tetradic
#520F26 #48520F #0F523B #1A0F52
square
#520F26 #48520F #0F523B #1A0F52
split-complementary
#520F26 #0F521A #0F4852
monochromatic
#1A050C #1E060E #520F26 #86183E #B92256

Accessibility & contrast

On white

14.43
#520F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #520F26
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##520F26#FFFFFF#000000##FFFFFF
##520F261.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2127
Deuteranopia (green-blind)
#312E24
Tritanopia (blue-blind)
#5A0219
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #520f26;
/* rgb */ color: rgb(82, 15, 38);
/* oklch */ color: oklch(29.6% 0.099 5.2);
Tailwind
colors: {
  custom: {
    50: '#875460',
    500: '#520f26',
    950: '#000000',
  },
}
SCSS
$custom: #520f26;
$custom-light: #875460;
$custom-dark: #000000;
JSON
{
  "hex": "#520f26",
  "rgb": {
    "r": 82,
    "g": 15,
    "b": 38
  },
  "hsl": {
    "h": 339.403,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29623,
    "c": 0.09893,
    "h": 5.2
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#520F26
secondary
#318C6D
accent
#ECAF3C
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #520F26

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

Preview Lab → · Contrast checker → · Palette generator →

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