#2A4B16#2A4B16

#2A4B16 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.4% C 0.089 H 135.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2A4B16
RGBrgb(42, 75, 22)
HSLhsl(97, 55%, 19%)
HSVhsv(97, 71%, 29%)
CMYKcmyk(44%, 0%, 70.7%, 70.6%)
CIE-LABlab(28.33, -22.93, 26.99)
CIE-LCHlch(28.33, 35.41, 130.35°)
OKLaboklab(37.44% -0.0637 0.0623)
OKLCHoklch(37.44% 0.089 135.6)
XYZxyz(3.6157, 5.5821, 1.6458)
Luminance0.0558 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B16 #37164B
analogous
#454B16 #2A4B16 #164B1D
triadic
#2A4B16 #162A4B #4B162A
tetradic
#2A4B16 #16454B #37164B #4B1D16
square
#2A4B16 #16454B #37164B #4B1D16
split-complementary
#2A4B16 #1D164B #4B1645
monochromatic
#0D1807 #101C08 #2A4B16 #457A24 #5FAA32

Accessibility & contrast

On white

9.92
#2A4B16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A4B16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4B16
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B16#FFFFFF#000000##FFFFFF
##2A4B161.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E450F
Deuteranopia (green-blind)
#49421A
Tritanopia (blue-blind)
#294840
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a4b16;
/* rgb */ color: rgb(42, 75, 22);
/* oklch */ color: oklch(37.4% 0.089 135.6);
Tailwind
colors: {
  custom: {
    50: '#677d56',
    500: '#2a4b16',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b16;
$custom-light: #677d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b16",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 22
  },
  "hsl": {
    "h": 97.358,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.37444,
    "c": 0.08907,
    "h": 135.6
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#2A4B16
secondary
#673A83
accent
#4ADEA6
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4B16

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

Preview Lab → · Contrast checker → · Palette generator →

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