#545212#545212

#545212 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.8% C 0.082 H 107.6°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#545212
RGBrgb(84, 82, 18)
HSLhsl(58, 65%, 20%)
HSVhsv(58, 79%, 33%)
CMYKcmyk(0%, 2.4%, 78.6%, 67.1%)
CIE-LABlab(33.91, -7.72, 35.55)
CIE-LCHlch(33.91, 36.38, 102.25°)
OKLaboklab(42.76% -0.0249 0.0785)
OKLCHoklch(42.76% 0.082 107.6)
XYZxyz(6.7829, 7.9633, 1.7519)
Luminance0.0796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545212 #121454
analogous
#543112 #545212 #355412
triadic
#545212 #125452 #521254
tetradic
#545212 #125431 #121454 #541235
square
#545212 #125431 #121454 #541235
split-complementary
#545212 #123554 #311254
monochromatic
#191905 #222107 #545212 #86831D #B9B428

Accessibility & contrast

On white

8.10
#545212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#545212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #545212
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545212#FFFFFF#000000##FFFFFF
##5452121.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4E06
Deuteranopia (green-blind)
#5B5117
Tritanopia (blue-blind)
#5B4C46
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #545212;
/* rgb */ color: rgb(84, 82, 18);
/* oklch */ color: oklch(42.8% 0.082 107.6);
Tailwind
colors: {
  custom: {
    50: '#878255',
    500: '#545212',
    950: '#000000',
  },
}
SCSS
$custom: #545212;
$custom-light: #878255;
$custom-dark: #000000;
JSON
{
  "hex": "#545212",
  "rgb": {
    "r": 84,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 58.182,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.42758,
    "c": 0.0824,
    "h": 107.6
  },
  "luminance": 0.07963
}

Semantic roles & 50–950 ramp

primary
#545212
secondary
#35388D
accent
#45E840
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #545212

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

Preview Lab → · Contrast checker → · Palette generator →

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