#545D12#545D12

#545D12 is a mid, moderate yellow. Relative luminance 0.098; OKLCH L 45.6% C 0.096 H 116.4°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#545D12
RGBrgb(84, 93, 18)
HSLhsl(67, 68%, 22%)
HSVhsv(67, 81%, 36%)
CMYKcmyk(9.7%, 0%, 80.6%, 63.5%)
CIE-LABlab(37.40, -14.03, 38.86)
CIE-LCHlch(37.40, 41.31, 109.85°)
OKLaboklab(45.56% -0.0425 0.0855)
OKLCHoklch(45.56% 0.096 116.4)
XYZxyz(7.6799, 9.7573, 2.0509)
Luminance0.0976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545D12 #1B125D
analogous
#5D4112 #545D12 #2F5D12
triadic
#545D12 #12545D #5D1254
tetradic
#545D12 #125D41 #1B125D #5D122F
square
#545D12 #125D41 #1B125D #5D122F
split-complementary
#545D12 #122F5D #41125D
monochromatic
#171A05 #262A08 #545D12 #82901C #B1C426

Accessibility & contrast

On white

7.12
#545D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#545D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #545D12
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545D12#FFFFFF#000000##FFFFFF
##545D121.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645802
Deuteranopia (green-blind)
#635819
Tritanopia (blue-blind)
#5A574F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #545d12;
/* rgb */ color: rgb(84, 93, 18);
/* oklch */ color: oklch(45.6% 0.096 116.4);
Tailwind
colors: {
  custom: {
    50: '#878a57',
    500: '#545d12',
    950: '#000000',
  },
}
SCSS
$custom: #545d12;
$custom-light: #878a57;
$custom-dark: #000000;
JSON
{
  "hex": "#545d12",
  "rgb": {
    "r": 84,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 67.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.45557,
    "c": 0.0955,
    "h": 116.4
  },
  "luminance": 0.09757
}

Semantic roles & 50–950 ramp

primary
#545D12
secondary
#413595
accent
#3DEA52
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #545D12

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

Preview Lab → · Contrast checker → · Palette generator →

#545D12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva