#2F6E0F#2F6E0F

#2F6E0F is a mid, vivid yellow-green. Relative luminance 0.118; OKLCH L 47.8% C 0.139 H 137.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#2F6E0F
RGBrgb(47, 110, 15)
HSLhsl(100, 76%, 25%)
HSVhsv(100, 86%, 43%)
CMYKcmyk(57.3%, 0%, 86.4%, 56.9%)
CIE-LABlab(40.88, -37.26, 42.25)
CIE-LCHlch(40.88, 56.33, 131.41°)
OKLaboklab(47.81% -0.1032 0.0931)
OKLCHoklch(47.81% 0.139 137.9)
XYZxyz(6.8342, 11.7901, 2.3674)
Luminance0.1179 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6E0F #4E0F6E
analogous
#5F6E0F #2F6E0F #0F6E1E
triadic
#2F6E0F #0F2F6E #6E0F2F
tetradic
#2F6E0F #0F5F6E #4E0F6E #6E1E0F
square
#2F6E0F #0F5F6E #4E0F6E #6E1E0F
split-complementary
#2F6E0F #1E0F6E #6E0F5F
monochromatic
#0C1B04 #183808 #2F6E0F #46A416 #5DDA1E

Accessibility & contrast

On white

6.25
#2F6E0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2F6E0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6E0F
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6E0F#FFFFFF#000000##FFFFFF
##2F6E0F1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#6A5E1B
Tritanopia (blue-blind)
#2A6A5D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f6e0f;
/* rgb */ color: rgb(47, 110, 15);
/* oklch */ color: oklch(47.8% 0.139 137.9);
Tailwind
colors: {
  custom: {
    50: '#709858',
    500: '#2f6e0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f6e0f;
$custom-light: #709858;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6e0f",
  "rgb": {
    "r": 47,
    "g": 110,
    "b": 15
  },
  "hsl": {
    "h": 99.789,
    "s": 76,
    "l": 24.51
  },
  "oklch": {
    "l": 0.47805,
    "c": 0.13899,
    "h": 137.9
  },
  "luminance": 0.11791
}

Semantic roles & 50–950 ramp

primary
#2F6E0F
secondary
#7F33A6
accent
#35F3B3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F6E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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