#2A4208#2A4208

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

Color values

HEX#2A4208
RGBrgb(42, 66, 8)
HSLhsl(85, 78%, 15%)
HSVhsv(85, 88%, 26%)
CMYKcmyk(36.4%, 0%, 87.9%, 74.1%)
CIE-LABlab(24.97, -19.52, 29.82)
CIE-LCHlch(24.97, 35.65, 123.21°)
OKLaboklab(34.66% -0.0556 0.0659)
OKLCHoklch(34.66% 0.086 130.2)
XYZxyz(2.9469, 4.4061, 0.9249)
Luminance0.0441 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4208 #200842
analogous
#423D08 #2A4208 #0D4208
triadic
#2A4208 #082A42 #42082A
tetradic
#2A4208 #08423D #200842 #42080D
square
#2A4208 #08423D #200842 #42080D
split-complementary
#2A4208 #080D42 #3D0842
monochromatic
#111B03 #111B03 #2A4208 #4D790F #6FAF15

Accessibility & contrast

On white

11.16
#2A4208 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4208
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4208#FFFFFF#000000##FFFFFF
##2A42081.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4208;
/* rgb */ color: rgb(42, 66, 8);
/* oklch */ color: oklch(34.7% 0.086 130.2);
Tailwind
colors: {
  custom: {
    50: '#66764d',
    500: '#2a4208',
    950: '#000000',
  },
}
SCSS
$custom: #2a4208;
$custom-light: #66764d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4208",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 8
  },
  "hsl": {
    "h": 84.828,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.34663,
    "c": 0.08627,
    "h": 130.2
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#2A4208
secondary
#4B2580
accent
#33F583
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4208

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

Preview Lab → · Contrast checker → · Palette generator →

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