#2A540F#2A540F

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

Color values

HEX#2A540F
RGBrgb(42, 84, 15)
HSLhsl(97, 70%, 19%)
HSVhsv(97, 82%, 33%)
CMYKcmyk(50%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.50, -27.82, 33.37)
CIE-LCHlch(31.50, 43.45, 129.82°)
OKLaboklab(40.02% -0.0775 0.0746)
OKLCHoklch(40.02% 0.108 136.1)
XYZxyz(4.2113, 6.8671, 1.5554)
Luminance0.0687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A540F #390F54
analogous
#4D540F #2A540F #0F5417
triadic
#2A540F #0F2A54 #540F2A
tetradic
#2A540F #0F4D54 #390F54 #54170F
square
#2A540F #0F4D54 #390F54 #54170F
split-complementary
#2A540F #170F54 #540F4D
monochromatic
#0D1A05 #102006 #2A540F #448818 #5EBC22

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A540F#FFFFFF#000000##FFFFFF
##2A540F1.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)
#574C02
Deuteranopia (green-blind)
#524916
Tritanopia (blue-blind)
#285147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a540f;
/* rgb */ color: rgb(42, 84, 15);
/* oklch */ color: oklch(40.0% 0.108 136.1);
Tailwind
colors: {
  custom: {
    50: '#688453',
    500: '#2a540f',
    950: '#000000',
  },
}
SCSS
$custom: #2a540f;
$custom-light: #688453;
$custom-dark: #000000;
JSON
{
  "hex": "#2a540f",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 96.522,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40023,
    "c": 0.10757,
    "h": 136.1
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#2A540F
secondary
#6A318E
accent
#3BEDA7
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A540F

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

Preview Lab → · Contrast checker → · Palette generator →

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