#545B18#545B18

#545B18 is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.1% C 0.089 H 115.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#545B18
RGBrgb(84, 91, 24)
HSLhsl(66, 58%, 23%)
HSVhsv(66, 74%, 36%)
CMYKcmyk(7.7%, 0%, 73.6%, 64.3%)
CIE-LABlab(36.81, -12.56, 35.87)
CIE-LCHlch(36.81, 38.00, 109.30°)
OKLaboklab(45.09% -0.0378 0.0804)
OKLCHoklch(45.09% 0.089 115.2)
XYZxyz(7.5623, 9.4331, 2.2864)
Luminance0.0943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545B18 #1F185B
analogous
#5B4118 #545B18 #325B18
triadic
#545B18 #18545B #5B1854
tetradic
#545B18 #185B41 #1F185B #5B1832
square
#545B18 #185B41 #1F185B #5B1832
split-complementary
#545B18 #18325B #41185B
monochromatic
#161806 #272B0B #545B18 #818B25 #ADBC32

Accessibility & contrast

On white

7.27
#545B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#545B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #545B18
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545B18#FFFFFF#000000##FFFFFF
##545B181.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560E
Deuteranopia (green-blind)
#61571D
Tritanopia (blue-blind)
#5A554E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #545b18;
/* rgb */ color: rgb(84, 91, 24);
/* oklch */ color: oklch(45.1% 0.089 115.2);
Tailwind
colors: {
  custom: {
    50: '#86895a',
    500: '#545b18',
    950: '#000000',
  },
}
SCSS
$custom: #545b18;
$custom-light: #86895a;
$custom-dark: #000000;
JSON
{
  "hex": "#545b18",
  "rgb": {
    "r": 84,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 66.269,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.4509,
    "c": 0.08881,
    "h": 115.2
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#545B18
secondary
#463D92
accent
#46E157
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #545B18

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

Preview Lab → · Contrast checker → · Palette generator →

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