#2F5A11#2F5A11

#2F5A11 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.112 H 135.6°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#2F5A11
RGBrgb(47, 90, 17)
HSLhsl(95, 68%, 21%)
HSVhsv(95, 81%, 35%)
CMYKcmyk(47.8%, 0%, 81.1%, 64.7%)
CIE-LABlab(33.89, -28.59, 35.01)
CIE-LCHlch(33.89, 45.21, 129.24°)
OKLaboklab(42.06% -0.0798 0.0783)
OKLCHoklch(42.06% 0.112 135.6)
XYZxyz(4.9295, 7.9568, 1.8063)
Luminance0.0796 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A11 #3C115A
analogous
#535A11 #2F5A11 #115A17
triadic
#2F5A11 #112F5A #5A112F
tetradic
#2F5A11 #11535A #3C115A #5A1711
square
#2F5A11 #11535A #3C115A #5A1711
split-complementary
#2F5A11 #17115A #5A1153
monochromatic
#0D1A05 #142707 #2F5A11 #4A8D1B #65C124

Accessibility & contrast

On white

8.10
#2F5A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5A11
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A11#FFFFFF#000000##FFFFFF
##2F5A111.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5a11;
/* rgb */ color: rgb(47, 90, 17);
/* oklch */ color: oklch(42.1% 0.112 135.6);
Tailwind
colors: {
  custom: {
    50: '#6c8955',
    500: '#2f5a11',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a11;
$custom-light: #6c8955;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a11",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 95.342,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42057,
    "c": 0.11177,
    "h": 135.6
  },
  "luminance": 0.07957
}

Semantic roles & 50–950 ramp

primary
#2F5A11
secondary
#6C3493
accent
#3DEBA3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5A11

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

Preview Lab → · Contrast checker → · Palette generator →

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