#2F5C11#2F5C11

#2F5C11 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.6% C 0.115 H 135.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2F5C11
RGBrgb(47, 92, 17)
HSLhsl(96, 69%, 21%)
HSVhsv(96, 82%, 36%)
CMYKcmyk(48.9%, 0%, 81.5%, 63.9%)
CIE-LABlab(34.60, -29.50, 35.70)
CIE-LCHlch(34.60, 46.31, 129.57°)
OKLaboklab(42.64% -0.0822 0.0797)
OKLCHoklch(42.64% 0.115 135.9)
XYZxyz(5.1005, 8.2988, 1.8633)
Luminance0.0830 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C11 #3E115C
analogous
#555C11 #2F5C11 #115C19
triadic
#2F5C11 #112F5C #5C112F
tetradic
#2F5C11 #11555C #3E115C #5C1911
square
#2F5C11 #11555C #3E115C #5C1911
split-complementary
#2F5C11 #19115C #5C1155
monochromatic
#0D1A05 #152807 #2F5C11 #49901B #64C324

Accessibility & contrast

On white

7.90
#2F5C11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F5C11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5C11
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C11#FFFFFF#000000##FFFFFF
##2F5C111.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605402
Deuteranopia (green-blind)
#5A5019
Tritanopia (blue-blind)
#2D584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5c11;
/* rgb */ color: rgb(47, 92, 17);
/* oklch */ color: oklch(42.6% 0.115 135.9);
Tailwind
colors: {
  custom: {
    50: '#6d8a55',
    500: '#2f5c11',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c11;
$custom-light: #6d8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c11",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 17
  },
  "hsl": {
    "h": 96,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42635,
    "c": 0.11452,
    "h": 135.9
  },
  "luminance": 0.08299
}

Semantic roles & 50–950 ramp

primary
#2F5C11
secondary
#6E3495
accent
#3CECA5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5C11

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

Preview Lab → · Contrast checker → · Palette generator →

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