#2A4812#2A4812

#2A4812 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.5% C 0.088 H 133.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2A4812
RGBrgb(42, 72, 18)
HSLhsl(93, 60%, 18%)
HSVhsv(93, 75%, 28%)
CMYKcmyk(41.7%, 0%, 75%, 71.8%)
CIE-LABlab(27.22, -21.83, 27.74)
CIE-LCHlch(27.22, 35.30, 128.19°)
OKLaboklab(36.52% -0.061 0.0633)
OKLCHoklch(36.52% 0.088 133.9)
XYZxyz(3.3813, 5.1705, 1.3920)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4812 #301248
analogous
#454812 #2A4812 #124815
triadic
#2A4812 #122A48 #48122A
tetradic
#2A4812 #124548 #301248 #481512
square
#2A4812 #124548 #301248 #481512
split-complementary
#2A4812 #151248 #481245
monochromatic
#0E1806 #0E1806 #2A4812 #47791E #63AA2A

Accessibility & contrast

On white

10.32
#2A4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4812
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4812#FFFFFF#000000##FFFFFF
##2A48121.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420A
Deuteranopia (green-blind)
#473F17
Tritanopia (blue-blind)
#2A453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4812;
/* rgb */ color: rgb(42, 72, 18);
/* oklch */ color: oklch(36.5% 0.088 133.9);
Tailwind
colors: {
  custom: {
    50: '#667b53',
    500: '#2a4812',
    950: '#000000',
  },
}
SCSS
$custom: #2a4812;
$custom-light: #667b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4812",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 93.333,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36519,
    "c": 0.08792,
    "h": 133.9
  },
  "luminance": 0.05171
}

Semantic roles & 50–950 ramp

primary
#2A4812
secondary
#5F3581
accent
#45E39D
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4812

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

Preview Lab → · Contrast checker → · Palette generator →

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