#546012#546012

#546012 is a mid, moderate yellow. Relative luminance 0.103; OKLCH L 46.3% C 0.099 H 118.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#546012
RGBrgb(84, 96, 18)
HSLhsl(69, 68%, 22%)
HSVhsv(69, 81%, 38%)
CMYKcmyk(12.5%, 0%, 81.3%, 62.4%)
CIE-LABlab(38.37, -15.68, 39.76)
CIE-LCHlch(38.37, 42.74, 111.53°)
OKLaboklab(46.33% -0.0471 0.0874)
OKLCHoklch(46.33% 0.099 118.3)
XYZxyz(7.9484, 10.2943, 2.1404)
Luminance0.1029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#546012 #1E1260
analogous
#604512 #546012 #2D6012
triadic
#546012 #125460 #601254
tetradic
#546012 #126045 #1E1260 #60122D
square
#546012 #126045 #1E1260 #60122D
split-complementary
#546012 #122D60 #451260
monochromatic
#171A05 #272C08 #546012 #81941C #AEC725

Accessibility & contrast

On white

6.87
#546012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#546012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #546012
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##546012#FFFFFF#000000##FFFFFF
##5460121.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A01
Deuteranopia (green-blind)
#665B19
Tritanopia (blue-blind)
#5A5A51
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #546012;
/* rgb */ color: rgb(84, 96, 18);
/* oklch */ color: oklch(46.3% 0.099 118.3);
Tailwind
colors: {
  custom: {
    50: '#878d57',
    500: '#546012',
    950: '#000000',
  },
}
SCSS
$custom: #546012;
$custom-light: #878d57;
$custom-dark: #000000;
JSON
{
  "hex": "#546012",
  "rgb": {
    "r": 84,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 69.231,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.46331,
    "c": 0.09929,
    "h": 118.3
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

primary
#546012
secondary
#453698
accent
#3DEB57
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #546012

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

Preview Lab → · Contrast checker → · Palette generator →

#546012 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva