#545A12#545A12

#545A12 is a dark, moderate yellow. Relative luminance 0.092; OKLCH L 44.8% C 0.092 H 114.3°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#545A12
RGBrgb(84, 90, 18)
HSLhsl(65, 67%, 21%)
HSVhsv(65, 80%, 35%)
CMYKcmyk(6.7%, 0%, 80%, 64.7%)
CIE-LABlab(36.44, -12.34, 37.96)
CIE-LCHlch(36.44, 39.92, 108.01°)
OKLaboklab(44.79% -0.0378 0.0836)
OKLCHoklch(44.79% 0.092 114.3)
XYZxyz(7.4217, 9.2410, 1.9649)
Luminance0.0924 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545A12 #18125A
analogous
#5A3C12 #545A12 #305A12
triadic
#545A12 #12545A #5A1254
tetradic
#545A12 #125A3C #18125A #5A1230
square
#545A12 #125A3C #18125A #5A1230
split-complementary
#545A12 #12305A #3C125A
monochromatic
#181A05 #242708 #545A12 #848D1C #B3C026

Accessibility & contrast

On white

7.37
#545A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#545A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #545A12
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545A12#FFFFFF#000000##FFFFFF
##545A121.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615504
Deuteranopia (green-blind)
#615618
Tritanopia (blue-blind)
#5A544C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #545a12;
/* rgb */ color: rgb(84, 90, 18);
/* oklch */ color: oklch(44.8% 0.092 114.3);
Tailwind
colors: {
  custom: {
    50: '#878856',
    500: '#545a12',
    950: '#000000',
  },
}
SCSS
$custom: #545a12;
$custom-light: #878856;
$custom-dark: #000000;
JSON
{
  "hex": "#545a12",
  "rgb": {
    "r": 84,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 65,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44788,
    "c": 0.09178,
    "h": 114.3
  },
  "luminance": 0.09241
}

Semantic roles & 50–950 ramp

primary
#545A12
secondary
#3D3593
accent
#3EEA4C
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #545A12

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

Preview Lab → · Contrast checker → · Palette generator →

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