#2A4207#2A4207

#2A4207 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.087 H 130.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2A4207
RGBrgb(42, 66, 7)
HSLhsl(84, 81%, 14%)
HSVhsv(84, 89%, 26%)
CMYKcmyk(36.4%, 0%, 89.4%, 74.1%)
CIE-LABlab(24.96, -19.59, 30.23)
CIE-LCHlch(24.96, 36.02, 122.95°)
OKLaboklab(34.66% -0.0559 0.0666)
OKLCHoklch(34.66% 0.087 130)
XYZxyz(2.9414, 4.4039, 0.8960)
Luminance0.0440 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4207 #1F0742
analogous
#423D07 #2A4207 #0C4207
triadic
#2A4207 #072A42 #42072A
tetradic
#2A4207 #07423D #1F0742 #42070C
square
#2A4207 #07423D #1F0742 #42070C
split-complementary
#2A4207 #070C42 #3D0742
monochromatic
#121C03 #121C03 #2A4207 #4D790D #70B113

Accessibility & contrast

On white

11.17
#2A4207 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A4207 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4207
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4207#FFFFFF#000000##FFFFFF
##2A42071.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463C00
Deuteranopia (green-blind)
#423B0D
Tritanopia (blue-blind)
#2B3F37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a4207;
/* rgb */ color: rgb(42, 66, 7);
/* oklch */ color: oklch(34.7% 0.087 130.0);
Tailwind
colors: {
  custom: {
    50: '#66764c',
    500: '#2a4207',
    950: '#000000',
  },
}
SCSS
$custom: #2a4207;
$custom-light: #66764c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4207",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 7
  },
  "hsl": {
    "h": 84.407,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.08695,
    "h": 130
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#2A4207
secondary
#4A2481
accent
#31F781
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4207

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

Preview Lab → · Contrast checker → · Palette generator →

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