#2F5B11#2F5B11

#2F5B11 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.113 H 135.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2F5B11
RGBrgb(47, 91, 17)
HSLhsl(96, 69%, 21%)
HSVhsv(96, 81%, 36%)
CMYKcmyk(48.4%, 0%, 81.3%, 64.3%)
CIE-LABlab(34.25, -29.05, 35.36)
CIE-LCHlch(34.25, 45.76, 129.41°)
OKLaboklab(42.35% -0.081 0.079)
OKLCHoklch(42.35% 0.113 135.7)
XYZxyz(5.0144, 8.1267, 1.8346)
Luminance0.0813 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B11 #3D115B
analogous
#545B11 #2F5B11 #115B18
triadic
#2F5B11 #112F5B #5B112F
tetradic
#2F5B11 #11545B #3D115B #5B1811
square
#2F5B11 #11545B #3D115B #5B1811
split-complementary
#2F5B11 #18115B #5B1154
monochromatic
#0D1A05 #142707 #2F5B11 #4A8F1B #64C224

Accessibility & contrast

On white

8.00
#2F5B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F5B11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5B11
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B11#FFFFFF#000000##FFFFFF
##2F5B111.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5302
Deuteranopia (green-blind)
#594F19
Tritanopia (blue-blind)
#2D574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5b11;
/* rgb */ color: rgb(47, 91, 17);
/* oklch */ color: oklch(42.3% 0.113 135.7);
Tailwind
colors: {
  custom: {
    50: '#6c8a55',
    500: '#2f5b11',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b11;
$custom-light: #6c8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b11",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 95.676,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42346,
    "c": 0.11315,
    "h": 135.7
  },
  "luminance": 0.08127
}

Semantic roles & 50–950 ramp

primary
#2F5B11
secondary
#6D3494
accent
#3CEBA4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5B11

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

Preview Lab → · Contrast checker → · Palette generator →

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