#2A4906#2A4906

#2A4906 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.7% C 0.098 H 132.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2A4906
RGBrgb(42, 73, 6)
HSLhsl(88, 85%, 15%)
HSVhsv(88, 92%, 29%)
CMYKcmyk(42.5%, 0%, 91.8%, 71.4%)
CIE-LABlab(27.49, -23.20, 32.93)
CIE-LCHlch(27.49, 40.28, 125.16°)
OKLaboklab(36.72% -0.0657 0.072)
OKLCHoklch(36.72% 0.098 132.4)
XYZxyz(3.3702, 5.2703, 1.0120)
Luminance0.0527 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4906 #250649
analogous
#494606 #2A4906 #094906
triadic
#2A4906 #062A49 #49062A
tetradic
#2A4906 #064946 #250649 #490609
square
#2A4906 #064946 #250649 #490609
split-complementary
#2A4906 #060949 #460649
monochromatic
#101C02 #101C02 #2A4906 #4B820B #6BBA0F

Accessibility & contrast

On white

10.22
#2A4906 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A4906 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4906
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4906#FFFFFF#000000##FFFFFF
##2A49061.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4200
Deuteranopia (green-blind)
#48400E
Tritanopia (blue-blind)
#2A463D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4906;
/* rgb */ color: rgb(42, 73, 6);
/* oklch */ color: oklch(36.7% 0.098 132.4);
Tailwind
colors: {
  custom: {
    50: '#677c4d',
    500: '#2a4906',
    950: '#000000',
  },
}
SCSS
$custom: #2a4906;
$custom-light: #677c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4906",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 6
  },
  "hsl": {
    "h": 87.761,
    "s": 84.81,
    "l": 15.49
  },
  "oklch": {
    "l": 0.36718,
    "c": 0.09751,
    "h": 132.4
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#2A4906
secondary
#522388
accent
#2DFB8C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4906

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

Preview Lab → · Contrast checker → · Palette generator →

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