#2A4D17#2A4D17

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

Color values

HEX#2A4D17
RGBrgb(42, 77, 23)
HSLhsl(99, 54%, 20%)
HSVhsv(99, 70%, 30%)
CMYKcmyk(45.5%, 0%, 70.1%, 69.8%)
CIE-LABlab(29.06, -23.81, 27.28)
CIE-LCHlch(29.06, 36.21, 131.11°)
OKLaboklab(38.04% -0.066 0.063)
OKLCHoklch(38.04% 0.091 136.3)
XYZxyz(3.7633, 5.8616, 1.7436)
Luminance0.0586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D17 #3A174D
analogous
#454D17 #2A4D17 #174D1F
triadic
#2A4D17 #172A4D #4D172A
tetradic
#2A4D17 #17454D #3A174D #4D1F17
square
#2A4D17 #17454D #3A174D #4D1F17
split-complementary
#2A4D17 #1F174D #4D1745
monochromatic
#0D1807 #101E09 #2A4D17 #447C25 #5DAB33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4D17#FFFFFF#000000##FFFFFF
##2A4D171.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)
#504610
Deuteranopia (green-blind)
#4B431B
Tritanopia (blue-blind)
#294A42
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4d17;
/* rgb */ color: rgb(42, 77, 23);
/* oklch */ color: oklch(38.0% 0.091 136.3);
Tailwind
colors: {
  custom: {
    50: '#677f57',
    500: '#2a4d17',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d17;
$custom-light: #677f57;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d17",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 23
  },
  "hsl": {
    "h": 98.889,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38043,
    "c": 0.09125,
    "h": 136.3
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#2A4D17
secondary
#6B3C84
accent
#4ADDAA
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4D17

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

Preview Lab → · Contrast checker → · Palette generator →

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