#542012#542012

#542012 is a dark, moderate red. Relative luminance 0.030; OKLCH L 31.8% C 0.081 H 36.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#542012
RGBrgb(84, 32, 18)
HSLhsl(13, 65%, 20%)
HSVhsv(13, 79%, 33%)
CMYKcmyk(0%, 61.9%, 78.6%, 67.1%)
CIE-LABlab(19.89, 23.21, 21.16)
CIE-LCHlch(19.89, 31.41, 42.35°)
OKLaboklab(31.82% 0.0659 0.0479)
OKLCHoklch(31.82% 0.081 36)
XYZxyz(4.2823, 2.9621, 0.9184)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542012 #124654
analogous
#541225 #542012 #544112
triadic
#542012 #125420 #201254
tetradic
#542012 #255412 #124654 #411254
square
#542012 #255412 #124654 #411254
split-complementary
#542012 #125441 #122554
monochromatic
#190A05 #220D07 #542012 #86331D #B94628

Accessibility & contrast

On white

13.19
#542012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#542012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542012
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542012#FFFFFF#000000##FFFFFF
##5420121.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2910
Deuteranopia (green-blind)
#3B3411
Tritanopia (blue-blind)
#5D151D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #542012;
/* rgb */ color: rgb(84, 32, 18);
/* oklch */ color: oklch(31.8% 0.081 36.0);
Tailwind
colors: {
  custom: {
    50: '#895d50',
    500: '#542012',
    950: '#000000',
  },
}
SCSS
$custom: #542012;
$custom-light: #895d50;
$custom-dark: #000000;
JSON
{
  "hex": "#542012",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 18
  },
  "hsl": {
    "h": 12.727,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.31819,
    "c": 0.08146,
    "h": 36
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#542012
secondary
#357A8D
accent
#C4E840
background
#F8F5F4
surface
#F0E9E7
border
#CBC5C3
text
#0C0402
muted
#7D7978

Preview Lab

Preview with #542012

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

Preview Lab → · Contrast checker → · Palette generator →

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