#2A4218#2A4218

#2A4218 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.8% C 0.073 H 133.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2A4218
RGBrgb(42, 66, 24)
HSLhsl(94, 47%, 18%)
HSVhsv(94, 64%, 26%)
CMYKcmyk(36.4%, 0%, 63.6%, 74.1%)
CIE-LABlab(25.12, -18.05, 22.30)
CIE-LCHlch(25.12, 28.69, 128.98°)
OKLaboklab(34.83% -0.0501 0.0525)
OKLCHoklch(34.83% 0.073 133.7)
XYZxyz(3.0679, 4.4545, 1.5621)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4218 #301842
analogous
#3F4218 #2A4218 #18421B
triadic
#2A4218 #182A42 #42182A
tetradic
#2A4218 #183F42 #301842 #421B18
square
#2A4218 #183F42 #301842 #421B18
split-complementary
#2A4218 #1B1842 #42183F
monochromatic
#0E1608 #0E1608 #2A4218 #476F28 #639C39

Accessibility & contrast

On white

11.11
#2A4218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A4218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4218
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4218#FFFFFF#000000##FFFFFF
##2A42181.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D14
Deuteranopia (green-blind)
#413B1B
Tritanopia (blue-blind)
#2A3F39
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a4218;
/* rgb */ color: rgb(42, 66, 24);
/* oklch */ color: oklch(34.8% 0.073 133.7);
Tailwind
colors: {
  custom: {
    50: '#657656',
    500: '#2a4218',
    950: '#000000',
  },
}
SCSS
$custom: #2a4218;
$custom-light: #657656;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4218",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 24
  },
  "hsl": {
    "h": 94.286,
    "s": 46.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.34833,
    "c": 0.07258,
    "h": 133.7
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#2A4218
secondary
#5F3D79
accent
#51D69D
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2A4218

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

Preview Lab → · Contrast checker → · Palette generator →

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