#2A4706#2A4706

#2A4706 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.1% C 0.095 H 131.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#2A4706
RGBrgb(42, 71, 6)
HSLhsl(87, 84%, 15%)
HSVhsv(87, 92%, 28%)
CMYKcmyk(40.8%, 0%, 91.5%, 72.2%)
CIE-LABlab(26.77, -22.21, 32.29)
CIE-LCHlch(26.77, 39.19, 124.52°)
OKLaboklab(36.13% -0.0631 0.0707)
OKLCHoklch(36.13% 0.095 131.8)
XYZxyz(3.2409, 5.0117, 0.9689)
Luminance0.0501 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4706 #230647
analogous
#474306 #2A4706 #0A4706
triadic
#2A4706 #062A47 #47062A
tetradic
#2A4706 #064743 #230647 #47060A
square
#2A4706 #064743 #230647 #47060A
split-complementary
#2A4706 #060A47 #430647
monochromatic
#111C02 #111C02 #2A4706 #4B7F0B #6DB810

Accessibility & contrast

On white

10.49
#2A4706 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A4706 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4706
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4706#FFFFFF#000000##FFFFFF
##2A47061.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4100
Deuteranopia (green-blind)
#473F0D
Tritanopia (blue-blind)
#2B443B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a4706;
/* rgb */ color: rgb(42, 71, 6);
/* oklch */ color: oklch(36.1% 0.095 131.8);
Tailwind
colors: {
  custom: {
    50: '#677a4d',
    500: '#2a4706',
    950: '#000000',
  },
}
SCSS
$custom: #2a4706;
$custom-light: #677a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4706",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 6
  },
  "hsl": {
    "h": 86.769,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.36126,
    "c": 0.09472,
    "h": 131.8
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

primary
#2A4706
secondary
#4F2386
accent
#2DFB89
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060901
muted
#7A7B77

Preview Lab

Preview with #2A4706

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

Preview Lab → · Contrast checker → · Palette generator →

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