#541228#541228

#541228 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.4% C 0.098 H 5.1°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#541228
RGBrgb(84, 18, 40)
HSLhsl(340, 65%, 20%)
HSVhsv(340, 79%, 33%)
CMYKcmyk(0%, 78.6%, 52.4%, 67.1%)
CIE-LABlab(17.79, 31.91, 3.29)
CIE-LCHlch(17.79, 32.08, 5.89°)
OKLaboklab(30.4% 0.0975 0.0087)
OKLCHoklch(30.4% 0.098 5.1)
XYZxyz(4.2558, 2.4712, 2.2600)
Luminance0.0247 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541228 #12543E
analogous
#541249 #541228 #541D12
triadic
#541228 #285412 #122854
tetradic
#541228 #495412 #12543E #1D1254
square
#541228 #495412 #12543E #1D1254
split-complementary
#541228 #12541D #124954
monochromatic
#19050C #220710 #541228 #861D40 #B92858

Accessibility & contrast

On white

14.05
#541228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#541228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541228
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541228#FFFFFF#000000##FFFFFF
##5412281.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212328
Deuteranopia (green-blind)
#333026
Tritanopia (blue-blind)
#5C061B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #541228;
/* rgb */ color: rgb(84, 18, 40);
/* oklch */ color: oklch(30.4% 0.098 5.1);
Tailwind
colors: {
  custom: {
    50: '#885661',
    500: '#541228',
    950: '#000000',
  },
}
SCSS
$custom: #541228;
$custom-light: #885661;
$custom-dark: #000000;
JSON
{
  "hex": "#541228",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 340,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.30396,
    "c": 0.0979,
    "h": 5.1
  },
  "luminance": 0.02471
}

Semantic roles & 50–950 ramp

primary
#541228
secondary
#358D70
accent
#E8B040
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #541228

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

Preview Lab → · Contrast checker → · Palette generator →

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