#2A4E07#2A4E07

#2A4E07 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.2% C 0.104 H 133.9°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2A4E07
RGBrgb(42, 78, 7)
HSLhsl(90, 84%, 17%)
HSVhsv(90, 91%, 31%)
CMYKcmyk(46.2%, 0%, 91%, 69.4%)
CIE-LABlab(29.30, -25.54, 34.17)
CIE-LCHlch(29.30, 42.66, 126.78°)
OKLaboklab(38.2% -0.0719 0.0748)
OKLCHoklch(38.2% 0.104 133.9)
XYZxyz(3.7175, 5.9562, 1.1547)
Luminance0.0596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E07 #2B074E
analogous
#4E4E07 #2A4E07 #074E08
triadic
#2A4E07 #072A4E #4E072A
tetradic
#2A4E07 #074E4E #2B074E #4E0807
square
#2A4E07 #074E4E #2B074E #4E0807
split-complementary
#2A4E07 #08074E #4E074E
monochromatic
#0F1C03 #0F1C03 #2A4E07 #48860C #66BE11

Accessibility & contrast

On white

9.58
#2A4E07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A4E07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E07
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E07#FFFFFF#000000##FFFFFF
##2A4E071.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514700
Deuteranopia (green-blind)
#4D4410
Tritanopia (blue-blind)
#2A4A41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e07;
/* rgb */ color: rgb(42, 78, 7);
/* oklch */ color: oklch(38.2% 0.104 133.9);
Tailwind
colors: {
  custom: {
    50: '#68804f',
    500: '#2a4e07',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e07;
$custom-light: #68804f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e07",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 7
  },
  "hsl": {
    "h": 90.423,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.38202,
    "c": 0.10381,
    "h": 133.9
  },
  "luminance": 0.05956
}

Semantic roles & 50–950 ramp

primary
#2A4E07
secondary
#59258C
accent
#2EFA95
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4E07

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

Preview Lab → · Contrast checker → · Palette generator →

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