#2A4D16#2A4D16

#2A4D16 is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.0% C 0.092 H 136.1°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2A4D16
RGBrgb(42, 77, 22)
HSLhsl(98, 56%, 19%)
HSVhsv(98, 71%, 30%)
CMYKcmyk(45.5%, 0%, 71.4%, 69.8%)
CIE-LABlab(29.05, -23.92, 27.77)
CIE-LCHlch(29.05, 36.65, 130.74°)
OKLaboklab(38.03% -0.0664 0.0639)
OKLCHoklch(38.03% 0.092 136.1)
XYZxyz(3.7534, 5.8577, 1.6918)
Luminance0.0586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D16 #39164D
analogous
#464D16 #2A4D16 #164D1E
triadic
#2A4D16 #162A4D #4D162A
tetradic
#2A4D16 #16464D #39164D #4D1E16
square
#2A4D16 #16464D #39164D #4D1E16
split-complementary
#2A4D16 #1E164D #4D1646
monochromatic
#0D1807 #101D08 #2A4D16 #447D24 #5EAC31

Accessibility & contrast

On white

9.67
#2A4D16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4D16
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D16#FFFFFF#000000##FFFFFF
##2A4D161.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50460F
Deuteranopia (green-blind)
#4B431B
Tritanopia (blue-blind)
#294A42
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4d16;
/* rgb */ color: rgb(42, 77, 22);
/* oklch */ color: oklch(38.0% 0.092 136.1);
Tailwind
colors: {
  custom: {
    50: '#677f56',
    500: '#2a4d16',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d16;
$custom-light: #677f56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d16",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 22
  },
  "hsl": {
    "h": 98.182,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38031,
    "c": 0.09214,
    "h": 136.1
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#2A4D16
secondary
#6A3A85
accent
#49DFA8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4D16

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

Preview Lab → · Contrast checker → · Palette generator →

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