#2F6012#2F6012

#2F6012 is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 43.8% C 0.119 H 136.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2F6012
RGBrgb(47, 96, 18)
HSLhsl(98, 68%, 22%)
HSVhsv(98, 81%, 38%)
CMYKcmyk(51%, 0%, 81.3%, 62.4%)
CIE-LABlab(36.01, -31.21, 36.69)
CIE-LCHlch(36.01, 48.17, 130.38°)
OKLaboklab(43.8% -0.0868 0.0819)
OKLCHoklch(43.8% 0.119 136.6)
XYZxyz(5.4642, 9.0134, 2.0240)
Luminance0.0901 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6012 #431260
analogous
#566012 #2F6012 #12601C
triadic
#2F6012 #122F60 #60122F
tetradic
#2F6012 #125660 #431260 #601C12
square
#2F6012 #125660 #431260 #601C12
split-complementary
#2F6012 #1C1260 #601256
monochromatic
#0D1A05 #162C08 #2F6012 #48941C #61C725

Accessibility & contrast

On white

7.49
#2F6012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2F6012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6012
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6012#FFFFFF#000000##FFFFFF
##2F60121.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645702
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#2C5C51
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f6012;
/* rgb */ color: rgb(47, 96, 18);
/* oklch */ color: oklch(43.8% 0.119 136.6);
Tailwind
colors: {
  custom: {
    50: '#6d8d57',
    500: '#2f6012',
    950: '#000000',
  },
}
SCSS
$custom: #2f6012;
$custom-light: #6d8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6012",
  "rgb": {
    "r": 47,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 97.692,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43798,
    "c": 0.11934,
    "h": 136.6
  },
  "luminance": 0.09014
}

Semantic roles & 50–950 ramp

primary
#2F6012
secondary
#743698
accent
#3DEBAA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F6012

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

Preview Lab → · Contrast checker → · Palette generator →

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