#2F5212#2F5212

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

Color values

HEX#2F5212
RGBrgb(47, 82, 18)
HSLhsl(93, 64%, 20%)
HSVhsv(93, 78%, 32%)
CMYKcmyk(42.7%, 0%, 78%, 67.8%)
CIE-LABlab(31.07, -24.76, 31.81)
CIE-LCHlch(31.07, 40.31, 127.89°)
OKLaboklab(39.75% -0.0693 0.0717)
OKLCHoklch(39.75% 0.1 134)
XYZxyz(4.2987, 6.6824, 1.6355)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5212 #351252
analogous
#4F5212 #2F5212 #125215
triadic
#2F5212 #122F52 #52122F
tetradic
#2F5212 #124F52 #351252 #521512
square
#2F5212 #124F52 #351252 #521512
split-complementary
#2F5212 #151252 #52124F
monochromatic
#0E1906 #122007 #2F5212 #4C841D #69B628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5212#FFFFFF#000000##FFFFFF
##2F52121.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)
#554B07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#2F4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5212;
/* rgb */ color: rgb(47, 82, 18);
/* oklch */ color: oklch(39.7% 0.100 134.0);
Tailwind
colors: {
  custom: {
    50: '#6b8354',
    500: '#2f5212',
    950: '#000000',
  },
}
SCSS
$custom: #2f5212;
$custom-light: #6b8354;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5212",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 92.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39749,
    "c": 0.09977,
    "h": 134
  },
  "luminance": 0.06683
}

Semantic roles & 50–950 ramp

primary
#2F5212
secondary
#64358B
accent
#41E79C
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5212

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

Preview Lab → · Contrast checker → · Palette generator →

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