#2F5012#2F5012

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

Color values

HEX#2F5012
RGBrgb(47, 80, 18)
HSLhsl(92, 63%, 19%)
HSVhsv(92, 78%, 31%)
CMYKcmyk(41.3%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.36, -23.78, 31.09)
CIE-LCHlch(30.36, 39.14, 127.41°)
OKLaboklab(39.17% -0.0667 0.0702)
OKLCHoklch(39.17% 0.097 133.5)
XYZxyz(4.1501, 6.3851, 1.5859)
Luminance0.0639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5012 #331250
analogous
#4E5012 #2F5012 #125014
triadic
#2F5012 #122F50 #50122F
tetradic
#2F5012 #124E50 #331250 #501412
square
#2F5012 #124E50 #331250 #501412
split-complementary
#2F5012 #141250 #50124E
monochromatic
#0F1906 #121E07 #2F5012 #4C821D #6AB428

Accessibility & contrast

On white

9.22
#2F5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5012
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5012#FFFFFF#000000##FFFFFF
##2F50121.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5012;
/* rgb */ color: rgb(47, 80, 18);
/* oklch */ color: oklch(39.2% 0.097 133.5);
Tailwind
colors: {
  custom: {
    50: '#6b8154',
    500: '#2f5012',
    950: '#000000',
  },
}
SCSS
$custom: #2f5012;
$custom-light: #6b8154;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5012",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 91.935,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.09686,
    "h": 133.5
  },
  "luminance": 0.06385
}

Semantic roles & 50–950 ramp

primary
#2F5012
secondary
#623589
accent
#41E699
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5012

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

Preview Lab → · Contrast checker → · Palette generator →

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