#2F5211#2F5211

#2F5211 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.100 H 133.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2F5211
RGBrgb(47, 82, 17)
HSLhsl(92, 66%, 19%)
HSVhsv(92, 79%, 32%)
CMYKcmyk(42.7%, 0%, 79.3%, 67.8%)
CIE-LABlab(31.07, -24.83, 32.23)
CIE-LCHlch(31.07, 40.69, 127.62°)
OKLaboklab(39.74% -0.0696 0.0724)
OKLCHoklch(39.74% 0.1 133.9)
XYZxyz(4.2907, 6.6792, 1.5933)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5211 #341152
analogous
#505211 #2F5211 #115214
triadic
#2F5211 #112F52 #52112F
tetradic
#2F5211 #115052 #341152 #521411
square
#2F5211 #115052 #341152 #521411
split-complementary
#2F5211 #141152 #521150
monochromatic
#0F1905 #121F06 #2F5211 #4C851C #69B726

Accessibility & contrast

On white

8.99
#2F5211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F5211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5211
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5211#FFFFFF#000000##FFFFFF
##2F52111.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B06
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#2F4E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5211;
/* rgb */ color: rgb(47, 82, 17);
/* oklch */ color: oklch(39.7% 0.100 133.9);
Tailwind
colors: {
  custom: {
    50: '#6b8354',
    500: '#2f5211',
    950: '#000000',
  },
}
SCSS
$custom: #2f5211;
$custom-light: #6b8354;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5211",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 92.308,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3974,
    "c": 0.10049,
    "h": 133.9
  },
  "luminance": 0.06679
}

Semantic roles & 50–950 ramp

primary
#2F5211
secondary
#63348B
accent
#3FE99A
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5211

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

Preview Lab → · Contrast checker → · Palette generator →

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