#2A4907#2A4907

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

Color values

HEX#2A4907
RGBrgb(42, 73, 7)
HSLhsl(88, 83%, 16%)
HSVhsv(88, 90%, 29%)
CMYKcmyk(42.5%, 0%, 90.4%, 71.4%)
CIE-LABlab(27.50, -23.14, 32.55)
CIE-LCHlch(27.50, 39.93, 125.40°)
OKLaboklab(36.72% -0.0655 0.0714)
OKLCHoklch(36.72% 0.097 132.5)
XYZxyz(3.3757, 5.2725, 1.0408)
Luminance0.0527 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4907 #260749
analogous
#494707 #2A4907 #094907
triadic
#2A4907 #072A49 #49072A
tetradic
#2A4907 #074947 #260749 #490709
square
#2A4907 #074947 #260749 #490709
split-complementary
#2A4907 #070949 #470749
monochromatic
#101C03 #101C03 #2A4907 #4A810C #6AB912

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4907#FFFFFF#000000##FFFFFF
##2A49071.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)
#4C4200
Deuteranopia (green-blind)
#48400F
Tritanopia (blue-blind)
#2A463D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4907;
/* rgb */ color: rgb(42, 73, 7);
/* oklch */ color: oklch(36.7% 0.097 132.5);
Tailwind
colors: {
  custom: {
    50: '#677c4e',
    500: '#2a4907',
    950: '#000000',
  },
}
SCSS
$custom: #2a4907;
$custom-light: #677c4e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4907",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 7
  },
  "hsl": {
    "h": 88.182,
    "s": 82.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.36724,
    "c": 0.0969,
    "h": 132.5
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#2A4907
secondary
#532488
accent
#2FF98E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4907

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

Preview Lab → · Contrast checker → · Palette generator →

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