#546212#546212

#546212 is a mid, moderate yellow-green. Relative luminance 0.107; OKLCH L 46.8% C 0.102 H 119.4°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#546212
RGBrgb(84, 98, 18)
HSLhsl(71, 69%, 23%)
HSVhsv(71, 82%, 38%)
CMYKcmyk(14.3%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.01, -16.77, 40.35)
CIE-LCHlch(39.01, 43.70, 112.57°)
OKLaboklab(46.85% -0.0501 0.0887)
OKLCHoklch(46.85% 0.102 119.4)
XYZxyz(8.1332, 10.6639, 2.2020)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#546212 #201262
analogous
#624812 #546212 #2C6212
triadic
#546212 #125462 #621254
tetradic
#546212 #126248 #201262 #62122C
square
#546212 #126248 #201262 #62122C
split-complementary
#546212 #122C62 #481262
monochromatic
#161A05 #282E09 #546212 #80961B #ADC925

Accessibility & contrast

On white

6.70
#546212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#546212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #546212
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##546212#FFFFFF#000000##FFFFFF
##5462121.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#675C1A
Tritanopia (blue-blind)
#595C53
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #546212;
/* rgb */ color: rgb(84, 98, 18);
/* oklch */ color: oklch(46.8% 0.102 119.4);
Tailwind
colors: {
  custom: {
    50: '#878e58',
    500: '#546212',
    950: '#000000',
  },
}
SCSS
$custom: #546212;
$custom-light: #878e58;
$custom-dark: #000000;
JSON
{
  "hex": "#546212",
  "rgb": {
    "r": 84,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 70.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.46849,
    "c": 0.10184,
    "h": 119.4
  },
  "luminance": 0.10664
}

Semantic roles & 50–950 ramp

primary
#546212
secondary
#47369A
accent
#3CEC5B
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #546212

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

Preview Lab → · Contrast checker → · Palette generator →

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