#546F12#546F12

#546F12 is a mid, moderate yellow-green. Relative luminance 0.133; OKLCH L 50.2% C 0.119 H 125.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#546F12
RGBrgb(84, 111, 18)
HSLhsl(77, 72%, 25%)
HSVhsv(77, 84%, 44%)
CMYKcmyk(24.3%, 0%, 83.8%, 56.5%)
CIE-LABlab(43.21, -23.57, 44.19)
CIE-LCHlch(43.21, 50.08, 118.08°)
OKLaboklab(50.24% -0.0686 0.0968)
OKLCHoklch(50.24% 0.119 125.3)
XYZxyz(9.4499, 13.2972, 2.6409)
Luminance0.1330 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#546F12 #2D126F
analogous
#6F5B12 #546F12 #266F12
triadic
#546F12 #12546F #6F1254
tetradic
#546F12 #126F5B #2D126F #6F1226
square
#546F12 #126F5B #2D126F #6F1226
split-complementary
#546F12 #12266F #5B126F
monochromatic
#141A04 #2C3A09 #546F12 #7CA41B #A4D823

Accessibility & contrast

On white

5.74
#546F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#546F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #546F12
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##546F12#FFFFFF#000000##FFFFFF
##546F121.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#72661C
Tritanopia (blue-blind)
#58695E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #546f12;
/* rgb */ color: rgb(84, 111, 18);
/* oklch */ color: oklch(50.2% 0.119 125.3);
Tailwind
colors: {
  custom: {
    50: '#87985a',
    500: '#546f12',
    950: '#000000',
  },
}
SCSS
$custom: #546f12;
$custom-light: #87985a;
$custom-dark: #000000;
JSON
{
  "hex": "#546f12",
  "rgb": {
    "r": 84,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 77.419,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50243,
    "c": 0.11867,
    "h": 125.3
  },
  "luminance": 0.13297
}

Semantic roles & 50–950 ramp

primary
#546F12
secondary
#5737A6
accent
#39EF6E
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #546F12

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

Preview Lab → · Contrast checker → · Palette generator →

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