#2F6A0F#2F6A0F

#2F6A0F is a mid, vivid yellow-green. Relative luminance 0.109; OKLCH L 46.7% C 0.134 H 137.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#2F6A0F
RGBrgb(47, 106, 15)
HSLhsl(99, 75%, 24%)
HSVhsv(99, 86%, 42%)
CMYKcmyk(55.7%, 0%, 85.8%, 58.4%)
CIE-LABlab(39.49, -35.64, 40.98)
CIE-LCHlch(39.49, 54.31, 131.01°)
OKLaboklab(46.66% -0.0988 0.0904)
OKLCHoklch(46.66% 0.134 137.5)
XYZxyz(6.4123, 10.9464, 2.2268)
Luminance0.1095 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6A0F #4A0F6A
analogous
#5C6A0F #2F6A0F #0F6A1C
triadic
#2F6A0F #0F2F6A #6A0F2F
tetradic
#2F6A0F #0F5C6A #4A0F6A #6A1C0F
square
#2F6A0F #0F5C6A #4A0F6A #6A1C0F
split-complementary
#2F6A0F #1C0F6A #6A0F5C
monochromatic
#0C1B04 #173407 #2F6A0F #47A017 #5FD51E

Accessibility & contrast

On white

6.58
#2F6A0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2F6A0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6A0F
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6A0F#FFFFFF#000000##FFFFFF
##2F6A0F1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#665B1A
Tritanopia (blue-blind)
#2B665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f6a0f;
/* rgb */ color: rgb(47, 106, 15);
/* oklch */ color: oklch(46.7% 0.134 137.5);
Tailwind
colors: {
  custom: {
    50: '#6f9557',
    500: '#2f6a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f6a0f;
$custom-light: #6f9557;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6a0f",
  "rgb": {
    "r": 47,
    "g": 106,
    "b": 15
  },
  "hsl": {
    "h": 98.901,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46658,
    "c": 0.13398,
    "h": 137.5
  },
  "luminance": 0.10947
}

Semantic roles & 50–950 ramp

primary
#2F6A0F
secondary
#7B32A2
accent
#36F2B0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2F6A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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