#542212#542212

#542212 is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.2% C 0.079 H 38.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#542212
RGBrgb(84, 34, 18)
HSLhsl(15, 65%, 20%)
HSVhsv(15, 79%, 33%)
CMYKcmyk(0%, 59.5%, 78.6%, 67.1%)
CIE-LABlab(20.33, 22.07, 21.66)
CIE-LCHlch(20.33, 30.92, 44.46°)
OKLaboklab(32.16% 0.0624 0.049)
OKLCHoklch(32.16% 0.079 38.1)
XYZxyz(4.3378, 3.0731, 0.9369)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542212 #124454
analogous
#541223 #542212 #544312
triadic
#542212 #125422 #221254
tetradic
#542212 #235412 #124454 #431254
square
#542212 #235412 #124454 #431254
split-complementary
#542212 #125443 #122354
monochromatic
#190A05 #220E07 #542212 #86361D #B94B28

Accessibility & contrast

On white

13.01
#542212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#542212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542212
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542212#FFFFFF#000000##FFFFFF
##5422121.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A10
Deuteranopia (green-blind)
#3C3511
Tritanopia (blue-blind)
#5D171E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #542212;
/* rgb */ color: rgb(84, 34, 18);
/* oklch */ color: oklch(32.2% 0.079 38.1);
Tailwind
colors: {
  custom: {
    50: '#895f50',
    500: '#542212',
    950: '#000000',
  },
}
SCSS
$custom: #542212;
$custom-light: #895f50;
$custom-dark: #000000;
JSON
{
  "hex": "#542212",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 18
  },
  "hsl": {
    "h": 14.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.32155,
    "c": 0.07929,
    "h": 38.1
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#542212
secondary
#35788D
accent
#BFE840
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0402
muted
#7D7978

Preview Lab

Preview with #542212

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

Preview Lab → · Contrast checker → · Palette generator →

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