#2A540E#2A540E

#2A540E is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.0% C 0.108 H 136.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2A540E
RGBrgb(42, 84, 14)
HSLhsl(96, 71%, 19%)
HSVhsv(96, 83%, 33%)
CMYKcmyk(50%, 0%, 83.3%, 67.1%)
CIE-LABlab(31.50, -27.89, 33.75)
CIE-LCHlch(31.50, 43.78, 129.58°)
OKLaboklab(40.02% -0.0778 0.0752)
OKLCHoklch(40.02% 0.108 136)
XYZxyz(4.2043, 6.8643, 1.5188)
Luminance0.0687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A540E #380E54
analogous
#4D540E #2A540E #0E5415
triadic
#2A540E #0E2A54 #540E2A
tetradic
#2A540E #0E4D54 #380E54 #54150E
square
#2A540E #0E4D54 #380E54 #54150E
split-complementary
#2A540E #150E54 #540E4D
monochromatic
#0D1A04 #102005 #2A540E #448817 #5EBD1F

Accessibility & contrast

On white

8.85
#2A540E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A540E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A540E
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A540E#FFFFFF#000000##FFFFFF
##2A540E1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C01
Deuteranopia (green-blind)
#524916
Tritanopia (blue-blind)
#285147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a540e;
/* rgb */ color: rgb(42, 84, 14);
/* oklch */ color: oklch(40.0% 0.108 136.0);
Tailwind
colors: {
  custom: {
    50: '#688453',
    500: '#2a540e',
    950: '#000000',
  },
}
SCSS
$custom: #2a540e;
$custom-light: #688453;
$custom-dark: #000000;
JSON
{
  "hex": "#2a540e",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 96,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40016,
    "c": 0.10818,
    "h": 136
  },
  "luminance": 0.06865
}

Semantic roles & 50–950 ramp

primary
#2A540E
secondary
#682F8E
accent
#3AEEA6
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A540E

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

Preview Lab → · Contrast checker → · Palette generator →

#2A540E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva