#2F5A0F#2F5A0F

#2F5A0F is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.0% C 0.113 H 135.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2F5A0F
RGBrgb(47, 90, 15)
HSLhsl(94, 71%, 21%)
HSVhsv(94, 83%, 35%)
CMYKcmyk(47.8%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.88, -28.73, 35.74)
CIE-LCHlch(33.88, 45.86, 128.79°)
OKLaboklab(42.04% -0.0803 0.0795)
OKLCHoklch(42.04% 0.113 135.3)
XYZxyz(4.9146, 7.9509, 1.7276)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A0F #3A0F5A
analogous
#545A0F #2F5A0F #0F5A14
triadic
#2F5A0F #0F2F5A #5A0F2F
tetradic
#2F5A0F #0F545A #3A0F5A #5A140F
square
#2F5A0F #0F545A #3A0F5A #5A140F
split-complementary
#2F5A0F #140F5A #5A0F54
monochromatic
#0E1A04 #142606 #2F5A0F #4A8E18 #66C320

Accessibility & contrast

On white

8.11
#2F5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A0F
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A0F#FFFFFF#000000##FFFFFF
##2F5A0F1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5200
Deuteranopia (green-blind)
#584E17
Tritanopia (blue-blind)
#2E564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5a0f;
/* rgb */ color: rgb(47, 90, 15);
/* oklch */ color: oklch(42.0% 0.113 135.3);
Tailwind
colors: {
  custom: {
    50: '#6c8954',
    500: '#2f5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a0f;
$custom-light: #6c8954;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a0f",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 94.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42043,
    "c": 0.11298,
    "h": 135.3
  },
  "luminance": 0.07951
}

Semantic roles & 50–950 ramp

primary
#2F5A0F
secondary
#6A3194
accent
#3AEEA1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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