#2F6112#2F6112

#2F6112 is a dark, vivid yellow-green. Relative luminance 0.092; OKLCH L 44.1% C 0.121 H 136.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2F6112
RGBrgb(47, 97, 18)
HSLhsl(98, 69%, 23%)
HSVhsv(98, 81%, 38%)
CMYKcmyk(51.5%, 0%, 81.4%, 62%)
CIE-LABlab(36.36, -31.64, 37.03)
CIE-LCHlch(36.36, 48.71, 130.51°)
OKLaboklab(44.09% -0.0879 0.0827)
OKLCHoklch(44.09% 0.121 136.8)
XYZxyz(5.5560, 9.1970, 2.0546)
Luminance0.0920 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6112 #441261
analogous
#566112 #2F6112 #12611D
triadic
#2F6112 #122F61 #61122F
tetradic
#2F6112 #125661 #441261 #611D12
square
#2F6112 #125661 #441261 #611D12
split-complementary
#2F6112 #1D1261 #611256
monochromatic
#0D1A05 #162D08 #2F6112 #48951C #61C825

Accessibility & contrast

On white

7.40
#2F6112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2F6112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6112
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6112#FFFFFF#000000##FFFFFF
##2F61121.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655802
Deuteranopia (green-blind)
#5E541B
Tritanopia (blue-blind)
#2C5D52
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f6112;
/* rgb */ color: rgb(47, 97, 18);
/* oklch */ color: oklch(44.1% 0.121 136.8);
Tailwind
colors: {
  custom: {
    50: '#6d8e57',
    500: '#2f6112',
    950: '#000000',
  },
}
SCSS
$custom: #2f6112;
$custom-light: #6d8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6112",
  "rgb": {
    "r": 47,
    "g": 97,
    "b": 18
  },
  "hsl": {
    "h": 97.975,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44086,
    "c": 0.12068,
    "h": 136.8
  },
  "luminance": 0.09197
}

Semantic roles & 50–950 ramp

primary
#2F6112
secondary
#753699
accent
#3CECAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F6112

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

Preview Lab → · Contrast checker → · Palette generator →

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