#2A4811#2A4811

#2A4811 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.5% C 0.089 H 133.7°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2A4811
RGBrgb(42, 72, 17)
HSLhsl(93, 62%, 17%)
HSVhsv(93, 76%, 28%)
CMYKcmyk(41.7%, 0%, 76.4%, 71.8%)
CIE-LABlab(27.21, -21.92, 28.20)
CIE-LCHlch(27.21, 35.72, 127.85°)
OKLaboklab(36.51% -0.0613 0.0641)
OKLCHoklch(36.51% 0.089 133.7)
XYZxyz(3.3733, 5.1673, 1.3499)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4811 #2F1148
analogous
#464811 #2A4811 #114813
triadic
#2A4811 #112A48 #48112A
tetradic
#2A4811 #114648 #2F1148 #481311
square
#2A4811 #114648 #2F1148 #481311
split-complementary
#2A4811 #131148 #481146
monochromatic
#0E1906 #0E1906 #2A4811 #477A1D #64AB28

Accessibility & contrast

On white

10.33
#2A4811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A4811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4811
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4811#FFFFFF#000000##FFFFFF
##2A48111.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4209
Deuteranopia (green-blind)
#473F16
Tritanopia (blue-blind)
#2A453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4811;
/* rgb */ color: rgb(42, 72, 17);
/* oklch */ color: oklch(36.5% 0.089 133.7);
Tailwind
colors: {
  custom: {
    50: '#667b52',
    500: '#2a4811',
    950: '#000000',
  },
}
SCSS
$custom: #2a4811;
$custom-light: #667b52;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4811",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 17
  },
  "hsl": {
    "h": 92.727,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36508,
    "c": 0.08874,
    "h": 133.7
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#2A4811
secondary
#5E3382
accent
#43E59B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4811

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

Preview Lab → · Contrast checker → · Palette generator →

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