#2A4717#2A4717

#2A4717 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.3% C 0.082 H 134.9°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2A4717
RGBrgb(42, 71, 23)
HSLhsl(96, 51%, 18%)
HSVhsv(96, 68%, 28%)
CMYKcmyk(40.8%, 0%, 67.6%, 72.2%)
CIE-LABlab(26.91, -20.80, 24.89)
CIE-LCHlch(26.91, 32.43, 129.89°)
OKLaboklab(36.28% -0.0578 0.058)
OKLCHoklch(36.28% 0.082 134.9)
XYZxyz(3.3627, 5.0604, 1.6100)
Luminance0.0506 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4717 #341747
analogous
#424717 #2A4717 #17471C
triadic
#2A4717 #172A47 #47172A
tetradic
#2A4717 #174247 #341747 #471C17
square
#2A4717 #174247 #341747 #471C17
split-complementary
#2A4717 #1C1747 #471742
monochromatic
#0E1707 #0F1908 #2A4717 #457526 #61A335

Accessibility & contrast

On white

10.44
#2A4717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A4717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4717
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4717#FFFFFF#000000##FFFFFF
##2A47171.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4112
Deuteranopia (green-blind)
#463F1B
Tritanopia (blue-blind)
#2A443D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4717;
/* rgb */ color: rgb(42, 71, 23);
/* oklch */ color: oklch(36.3% 0.082 134.9);
Tailwind
colors: {
  custom: {
    50: '#667a56',
    500: '#2a4717',
    950: '#000000',
  },
}
SCSS
$custom: #2a4717;
$custom-light: #667a56;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4717",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 23
  },
  "hsl": {
    "h": 96.25,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.08182,
    "h": 134.9
  },
  "luminance": 0.05061
}

Semantic roles & 50–950 ramp

primary
#2A4717
secondary
#643C7E
accent
#4DDBA3
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4717

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

Preview Lab → · Contrast checker → · Palette generator →

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