#2A4E16#2A4E16

#2A4E16 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.094 H 136.3°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2A4E16
RGBrgb(42, 78, 22)
HSLhsl(99, 56%, 20%)
HSVhsv(99, 72%, 31%)
CMYKcmyk(46.2%, 0%, 71.8%, 69.4%)
CIE-LABlab(29.41, -24.40, 28.15)
CIE-LCHlch(29.41, 37.26, 130.91°)
OKLaboklab(38.32% -0.0677 0.0648)
OKLCHoklch(38.32% 0.094 136.3)
XYZxyz(3.8240, 5.9987, 1.7153)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E16 #3A164E
analogous
#464E16 #2A4E16 #164E1E
triadic
#2A4E16 #162A4E #4E162A
tetradic
#2A4E16 #16464E #3A164E #4E1E16
square
#2A4E16 #16464E #3A164E #4E1E16
split-complementary
#2A4E16 #1E164E #4E1646
monochromatic
#0D1807 #101E09 #2A4E16 #447E23 #5DAD31

Accessibility & contrast

On white

9.55
#2A4E16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4E16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E16
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E16#FFFFFF#000000##FFFFFF
##2A4E161.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51470F
Deuteranopia (green-blind)
#4C441B
Tritanopia (blue-blind)
#294B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e16;
/* rgb */ color: rgb(42, 78, 22);
/* oklch */ color: oklch(38.3% 0.094 136.3);
Tailwind
colors: {
  custom: {
    50: '#678056',
    500: '#2a4e16',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e16;
$custom-light: #678056;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e16",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 22
  },
  "hsl": {
    "h": 98.571,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38325,
    "c": 0.09366,
    "h": 136.3
  },
  "luminance": 0.05999
}

Semantic roles & 50–950 ramp

primary
#2A4E16
secondary
#6B3A85
accent
#49DFA9
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4E16

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

Preview Lab → · Contrast checker → · Palette generator →

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