#2A4916#2A4916

#2A4916 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.086 H 135.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2A4916
RGBrgb(42, 73, 22)
HSLhsl(96, 54%, 19%)
HSVhsv(96, 70%, 29%)
CMYKcmyk(42.5%, 0%, 69.9%, 71.4%)
CIE-LABlab(27.61, -21.93, 26.20)
CIE-LCHlch(27.61, 34.16, 129.93°)
OKLaboklab(36.86% -0.0609 0.0606)
OKLCHoklch(36.86% 0.086 135.2)
XYZxyz(3.4821, 5.3151, 1.6013)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4916 #351649
analogous
#434916 #2A4916 #16491B
triadic
#2A4916 #162A49 #49162A
tetradic
#2A4916 #164349 #351649 #491B16
square
#2A4916 #164349 #351649 #491B16
split-complementary
#2A4916 #1B1649 #491643
monochromatic
#0E1807 #0F1A08 #2A4916 #457824 #60A732

Accessibility & contrast

On white

10.18
#2A4916 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A4916 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4916
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4916#FFFFFF#000000##FFFFFF
##2A49161.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4310
Deuteranopia (green-blind)
#48401A
Tritanopia (blue-blind)
#29463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4916;
/* rgb */ color: rgb(42, 73, 22);
/* oklch */ color: oklch(36.9% 0.086 135.2);
Tailwind
colors: {
  custom: {
    50: '#667c56',
    500: '#2a4916',
    950: '#000000',
  },
}
SCSS
$custom: #2a4916;
$custom-light: #667c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4916",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 22
  },
  "hsl": {
    "h": 96.471,
    "s": 53.684,
    "l": 18.627
  },
  "oklch": {
    "l": 0.36857,
    "c": 0.08595,
    "h": 135.2
  },
  "luminance": 0.05315
}

Semantic roles & 50–950 ramp

primary
#2A4916
secondary
#653A80
accent
#4BDDA4
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4916

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

Preview Lab → · Contrast checker → · Palette generator →

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