#2A4F0E#2A4F0E

#2A4F0E is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.101 H 135.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4F0E
RGBrgb(42, 79, 14)
HSLhsl(94, 70%, 18%)
HSVhsv(94, 82%, 31%)
CMYKcmyk(46.8%, 0%, 82.3%, 69%)
CIE-LABlab(29.70, -25.58, 32.01)
CIE-LCHlch(29.70, 40.97, 128.62°)
OKLaboklab(38.54% -0.0715 0.0716)
OKLCHoklch(38.54% 0.101 135)
XYZxyz(3.8300, 6.1157, 1.3940)
Luminance0.0612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F0E #330E4F
analogous
#4A4F0E #2A4F0E #0E4F13
triadic
#2A4F0E #0E2A4F #4F0E2A
tetradic
#2A4F0E #0E4A4F #330E4F #4F130E
square
#2A4F0E #0E4A4F #330E4F #4F130E
split-complementary
#2A4F0E #130E4F #4F0E4A
monochromatic
#0E1A05 #0E1B05 #2A4F0E #468317 #61B720

Accessibility & contrast

On white

9.45
#2A4F0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A4F0E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F0E
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F0E#FFFFFF#000000##FFFFFF
##2A4F0E1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524803
Deuteranopia (green-blind)
#4D4515
Tritanopia (blue-blind)
#294C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f0e;
/* rgb */ color: rgb(42, 79, 14);
/* oklch */ color: oklch(38.5% 0.101 135.0);
Tailwind
colors: {
  custom: {
    50: '#688052',
    500: '#2a4f0e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f0e;
$custom-light: #688052;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f0e",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 14
  },
  "hsl": {
    "h": 94.154,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38544,
    "c": 0.10118,
    "h": 135
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

primary
#2A4F0E
secondary
#632F8A
accent
#3BEDA0
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4F0E

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

Preview Lab → · Contrast checker → · Palette generator →

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