#2A4E11#2A4E11

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

Color values

HEX#2A4E11
RGBrgb(42, 78, 17)
HSLhsl(95, 64%, 19%)
HSVhsv(95, 78%, 31%)
CMYKcmyk(46.2%, 0%, 78.2%, 69.4%)
CIE-LABlab(29.37, -24.87, 30.43)
CIE-LCHlch(29.37, 39.29, 129.26°)
OKLaboklab(38.28% -0.0693 0.0688)
OKLCHoklch(38.28% 0.098 135.2)
XYZxyz(3.7803, 5.9813, 1.4855)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E11 #35114E
analogous
#484E11 #2A4E11 #114E16
triadic
#2A4E11 #112A4E #4E112A
tetradic
#2A4E11 #11484E #35114E #4E1611
square
#2A4E11 #11484E #35114E #4E1611
split-complementary
#2A4E11 #16114E #4E1148
monochromatic
#0E1905 #0F1C06 #2A4E11 #45801C #60B227

Accessibility & contrast

On white

9.56
#2A4E11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E11
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E11#FFFFFF#000000##FFFFFF
##2A4E111.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514707
Deuteranopia (green-blind)
#4C4417
Tritanopia (blue-blind)
#294B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e11;
/* rgb */ color: rgb(42, 78, 17);
/* oklch */ color: oklch(38.3% 0.098 135.2);
Tailwind
colors: {
  custom: {
    50: '#678053',
    500: '#2a4e11',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e11;
$custom-light: #678053;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e11",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 17
  },
  "hsl": {
    "h": 95.41,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38275,
    "c": 0.09766,
    "h": 135.2
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#2A4E11
secondary
#653387
accent
#41E7A3
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4E11

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

Preview Lab → · Contrast checker → · Palette generator →

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