#52123F#52123F

#52123F is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.0% C 0.108 H 342.2°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#52123F
RGBrgb(82, 18, 63)
HSLhsl(318, 64%, 20%)
HSVhsv(318, 78%, 32%)
CMYKcmyk(0%, 78%, 23.2%, 67.8%)
CIE-LABlab(18.30, 34.27, -12.28)
CIE-LCHlch(18.30, 36.40, 340.28°)
OKLaboklab(31% 0.1029 -0.0329)
OKLCHoklch(31% 0.108 342.2)
XYZxyz(4.5933, 2.5858, 4.9589)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52123F #125225
analogous
#451252 #52123F #52121F
triadic
#52123F #3F5212 #123F52
tetradic
#52123F #524512 #125225 #121F52
square
#52123F #524512 #125225 #121F52
split-complementary
#52123F #1F5212 #125245
monochromatic
#190613 #200718 #52123F #841D66 #B6288C

Accessibility & contrast

On white

13.84
#52123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#52123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52123F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52123F#FFFFFF#000000##FFFFFF
##52123F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182640
Deuteranopia (green-blind)
#2C303E
Tritanopia (blue-blind)
#581326
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #52123f;
/* rgb */ color: rgb(82, 18, 63);
/* oklch */ color: oklch(31.0% 0.108 342.2);
Tailwind
colors: {
  custom: {
    50: '#855774',
    500: '#52123f',
    950: '#000000',
  },
}
SCSS
$custom: #52123f;
$custom-light: #855774;
$custom-dark: #000000;
JSON
{
  "hex": "#52123f",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 317.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30999,
    "c": 0.10801,
    "h": 342.2
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#52123F
secondary
#358B4E
accent
#E77241
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #52123F

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

Preview Lab → · Contrast checker → · Palette generator →

#52123F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva