#2A4714#2A4714

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

Color values

HEX#2A4714
RGBrgb(42, 71, 20)
HSLhsl(94, 56%, 18%)
HSVhsv(94, 72%, 28%)
CMYKcmyk(40.8%, 0%, 71.8%, 72.2%)
CIE-LABlab(26.87, -21.12, 26.40)
CIE-LCHlch(26.87, 33.81, 128.67°)
OKLaboklab(36.25% -0.0589 0.0608)
OKLCHoklch(36.25% 0.085 134.1)
XYZxyz(3.3343, 5.0491, 1.4606)
Luminance0.0505 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4714 #311447
analogous
#434714 #2A4714 #144718
triadic
#2A4714 #142A47 #47142A
tetradic
#2A4714 #144347 #311447 #471814
square
#2A4714 #144347 #311447 #471814
split-complementary
#2A4714 #181447 #471443
monochromatic
#0E1807 #0E1807 #2A4714 #467721 #62A62F

Accessibility & contrast

On white

10.45
#2A4714 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4714
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4714#FFFFFF#000000##FFFFFF
##2A47141.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410E
Deuteranopia (green-blind)
#463F18
Tritanopia (blue-blind)
#2A443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4714;
/* rgb */ color: rgb(42, 71, 20);
/* oklch */ color: oklch(36.2% 0.085 134.1);
Tailwind
colors: {
  custom: {
    50: '#667a54',
    500: '#2a4714',
    950: '#000000',
  },
}
SCSS
$custom: #2a4714;
$custom-light: #667a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4714",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 20
  },
  "hsl": {
    "h": 94.118,
    "s": 56.044,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36246,
    "c": 0.08464,
    "h": 134.1
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#2A4714
secondary
#60387F
accent
#48DF9E
background
#F6F7F4
surface
#EBEDE8
border
#C6C8C4
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4714

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

Preview Lab → · Contrast checker → · Palette generator →

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