#2A4712#2A4712

#2A4712 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.2% C 0.086 H 133.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2A4712
RGBrgb(42, 71, 18)
HSLhsl(93, 60%, 17%)
HSVhsv(93, 75%, 28%)
CMYKcmyk(40.8%, 0%, 74.6%, 72.2%)
CIE-LABlab(26.85, -21.32, 27.36)
CIE-LCHlch(26.85, 34.69, 127.92°)
OKLaboklab(36.22% -0.0596 0.0625)
OKLCHoklch(36.22% 0.086 133.7)
XYZxyz(3.3172, 5.0422, 1.3706)
Luminance0.0504 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4712 #2F1247
analogous
#454712 #2A4712 #124714
triadic
#2A4712 #122A47 #47122A
tetradic
#2A4712 #124547 #2F1247 #471412
square
#2A4712 #124547 #2F1247 #471412
split-complementary
#2A4712 #141247 #471245
monochromatic
#0E1806 #0E1806 #2A4712 #47781E #64A92B

Accessibility & contrast

On white

10.46
#2A4712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A4712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4712
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4712#FFFFFF#000000##FFFFFF
##2A47121.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410B
Deuteranopia (green-blind)
#463F16
Tritanopia (blue-blind)
#2A443C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a4712;
/* rgb */ color: rgb(42, 71, 18);
/* oklch */ color: oklch(36.2% 0.086 133.7);
Tailwind
colors: {
  custom: {
    50: '#667a53',
    500: '#2a4712',
    950: '#000000',
  },
}
SCSS
$custom: #2a4712;
$custom-light: #667a53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4712",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 18
  },
  "hsl": {
    "h": 92.83,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.08639,
    "h": 133.7
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#2A4712
secondary
#5E3580
accent
#45E39B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4712

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

Preview Lab → · Contrast checker → · Palette generator →

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