#545C12#545C12

#545C12 is a mid, moderate yellow. Relative luminance 0.096; OKLCH L 45.3% C 0.094 H 115.7°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#545C12
RGBrgb(84, 92, 18)
HSLhsl(66, 67%, 22%)
HSVhsv(66, 80%, 36%)
CMYKcmyk(8.7%, 0%, 80.4%, 63.9%)
CIE-LABlab(37.08, -13.47, 38.56)
CIE-LCHlch(37.08, 40.85, 109.25°)
OKLaboklab(45.3% -0.0409 0.0849)
OKLCHoklch(45.3% 0.094 115.7)
XYZxyz(7.5927, 9.5829, 2.0219)
Luminance0.0958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545C12 #1A125C
analogous
#5C3F12 #545C12 #2F5C12
triadic
#545C12 #12545C #5C1254
tetradic
#545C12 #125C3F #1A125C #5C122F
square
#545C12 #125C3F #1A125C #5C122F
split-complementary
#545C12 #122F5C #3F125C
monochromatic
#171A05 #252908 #545C12 #838F1C #B1C226

Accessibility & contrast

On white

7.20
#545C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#545C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #545C12
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545C12#FFFFFF#000000##FFFFFF
##545C121.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635703
Deuteranopia (green-blind)
#625818
Tritanopia (blue-blind)
#5A564E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #545c12;
/* rgb */ color: rgb(84, 92, 18);
/* oklch */ color: oklch(45.3% 0.094 115.7);
Tailwind
colors: {
  custom: {
    50: '#878a57',
    500: '#545c12',
    950: '#000000',
  },
}
SCSS
$custom: #545c12;
$custom-light: #878a57;
$custom-dark: #000000;
JSON
{
  "hex": "#545c12",
  "rgb": {
    "r": 84,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 66.486,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.453,
    "c": 0.09426,
    "h": 115.7
  },
  "luminance": 0.09583
}

Semantic roles & 50–950 ramp

primary
#545C12
secondary
#403594
accent
#3EEA50
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #545C12

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

Preview Lab → · Contrast checker → · Palette generator →

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