#2A4D11#2A4D11

#2A4D11 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.096 H 135.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2A4D11
RGBrgb(42, 77, 17)
HSLhsl(95, 64%, 18%)
HSVhsv(95, 78%, 30%)
CMYKcmyk(45.5%, 0%, 77.9%, 69.8%)
CIE-LABlab(29.01, -24.39, 30.06)
CIE-LCHlch(29.01, 38.71, 129.05°)
OKLaboklab(37.98% -0.068 0.068)
OKLCHoklch(37.98% 0.096 135)
XYZxyz(3.7098, 5.8403, 1.4620)
Luminance0.0584 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D11 #34114D
analogous
#484D11 #2A4D11 #114D16
triadic
#2A4D11 #112A4D #4D112A
tetradic
#2A4D11 #11484D #34114D #4D1611
square
#2A4D11 #11484D #34114D #4D1611
split-complementary
#2A4D11 #16114D #4D1148
monochromatic
#0E1906 #0F1B06 #2A4D11 #457F1C #61B127

Accessibility & contrast

On white

9.69
#2A4D11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A4D11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D11
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D11#FFFFFF#000000##FFFFFF
##2A4D111.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504607
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#294A41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4d11;
/* rgb */ color: rgb(42, 77, 17);
/* oklch */ color: oklch(38.0% 0.096 135.0);
Tailwind
colors: {
  custom: {
    50: '#677f53',
    500: '#2a4d11',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d11;
$custom-light: #677f53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d11",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 17
  },
  "hsl": {
    "h": 95,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.3798,
    "c": 0.0962,
    "h": 135
  },
  "luminance": 0.0584
}

Semantic roles & 50–950 ramp

primary
#2A4D11
secondary
#643386
accent
#41E7A2
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4D11

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

Preview Lab → · Contrast checker → · Palette generator →

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