#2F5011#2F5011

#2F5011 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.098 H 133.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2F5011
RGBrgb(47, 80, 17)
HSLhsl(91, 65%, 19%)
HSVhsv(91, 79%, 31%)
CMYKcmyk(41.3%, 0%, 78.8%, 68.6%)
CIE-LABlab(30.36, -23.86, 31.52)
CIE-LCHlch(30.36, 39.53, 127.12°)
OKLaboklab(39.16% -0.067 0.071)
OKLCHoklch(39.16% 0.098 133.4)
XYZxyz(4.1421, 6.3819, 1.5438)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5011 #321150
analogous
#4F5011 #2F5011 #115013
triadic
#2F5011 #112F50 #50112F
tetradic
#2F5011 #114F50 #321150 #501311
square
#2F5011 #114F50 #321150 #501311
split-complementary
#2F5011 #131150 #50114F
monochromatic
#0F1905 #111E06 #2F5011 #4D821C #6AB526

Accessibility & contrast

On white

9.23
#2F5011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F5011 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5011
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5011#FFFFFF#000000##FFFFFF
##2F50111.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544906
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#2F4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f5011;
/* rgb */ color: rgb(47, 80, 17);
/* oklch */ color: oklch(39.2% 0.098 133.4);
Tailwind
colors: {
  custom: {
    50: '#6b8154',
    500: '#2f5011',
    950: '#000000',
  },
}
SCSS
$custom: #2f5011;
$custom-light: #6b8154;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5011",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 91.429,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39161,
    "c": 0.09759,
    "h": 133.4
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#2F5011
secondary
#603389
accent
#40E898
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5011

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

Preview Lab → · Contrast checker → · Palette generator →

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