#2A4917#2A4917

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

Color values

HEX#2A4917
RGBrgb(42, 73, 23)
HSLhsl(97, 52%, 19%)
HSVhsv(97, 68%, 29%)
CMYKcmyk(42.5%, 0%, 68.5%, 71.4%)
CIE-LABlab(27.62, -21.82, 25.69)
CIE-LCHlch(27.62, 33.71, 130.34°)
OKLaboklab(36.87% -0.0605 0.0597)
OKLCHoklch(36.87% 0.085 135.4)
XYZxyz(3.4920, 5.3190, 1.6531)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4917 #361749
analogous
#434917 #2A4917 #17491D
triadic
#2A4917 #172A49 #49172A
tetradic
#2A4917 #174349 #361749 #491D17
square
#2A4917 #174349 #361749 #491D17
split-complementary
#2A4917 #1D1749 #491743
monochromatic
#0D1707 #0F1A08 #2A4917 #457826 #60A634

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4917#FFFFFF#000000##FFFFFF
##2A49171.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)
#4C4311
Deuteranopia (green-blind)
#47401B
Tritanopia (blue-blind)
#29463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4917;
/* rgb */ color: rgb(42, 73, 23);
/* oklch */ color: oklch(36.9% 0.085 135.4);
Tailwind
colors: {
  custom: {
    50: '#667c56',
    500: '#2a4917',
    950: '#000000',
  },
}
SCSS
$custom: #2a4917;
$custom-light: #667c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4917",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 23
  },
  "hsl": {
    "h": 97.2,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.36869,
    "c": 0.08501,
    "h": 135.4
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#2A4917
secondary
#663C80
accent
#4CDCA5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4917

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

Preview Lab → · Contrast checker → · Palette generator →

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