#545F12#545F12

#545F12 is a mid, moderate yellow. Relative luminance 0.101; OKLCH L 46.1% C 0.098 H 117.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#545F12
RGBrgb(84, 95, 18)
HSLhsl(69, 68%, 22%)
HSVhsv(69, 81%, 37%)
CMYKcmyk(11.6%, 0%, 81.1%, 62.7%)
CIE-LABlab(38.04, -15.13, 39.46)
CIE-LCHlch(38.04, 42.26, 110.98°)
OKLaboklab(46.07% -0.0455 0.0868)
OKLCHoklch(46.07% 0.098 117.7)
XYZxyz(7.8577, 10.1130, 2.1102)
Luminance0.1011 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#545F12 #1D125F
analogous
#5F4312 #545F12 #2E5F12
triadic
#545F12 #12545F #5F1254
tetradic
#545F12 #125F43 #1D125F #5F122E
square
#545F12 #125F43 #1D125F #5F122E
split-complementary
#545F12 #122E5F #43125F
monochromatic
#171A05 #272C08 #545F12 #81921C #AFC625

Accessibility & contrast

On white

6.95
#545F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#545F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #545F12
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##545F12#FFFFFF#000000##FFFFFF
##545F121.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665902
Deuteranopia (green-blind)
#655A19
Tritanopia (blue-blind)
#5A5951
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #545f12;
/* rgb */ color: rgb(84, 95, 18);
/* oklch */ color: oklch(46.1% 0.098 117.7);
Tailwind
colors: {
  custom: {
    50: '#878c57',
    500: '#545f12',
    950: '#000000',
  },
}
SCSS
$custom: #545f12;
$custom-light: #878c57;
$custom-dark: #000000;
JSON
{
  "hex": "#545f12",
  "rgb": {
    "r": 84,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 68.571,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.46073,
    "c": 0.09803,
    "h": 117.7
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#545F12
secondary
#443697
accent
#3DEB56
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #545F12

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

Preview Lab → · Contrast checker → · Palette generator →

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