#2F6611#2F6611

#2F6611 is a mid, vivid yellow-green. Relative luminance 0.101; OKLCH L 45.5% C 0.128 H 137.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2F6611
RGBrgb(47, 102, 17)
HSLhsl(99, 71%, 23%)
HSVhsv(99, 83%, 40%)
CMYKcmyk(53.9%, 0%, 83.3%, 60%)
CIE-LABlab(38.11, -33.85, 39.05)
CIE-LCHlch(38.11, 51.68, 130.92°)
OKLaboklab(45.52% -0.094 0.0867)
OKLCHoklch(45.52% 0.128 137.3)
XYZxyz(6.0246, 10.1471, 2.1713)
Luminance0.1015 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6611 #481166
analogous
#596611 #2F6611 #11661E
triadic
#2F6611 #112F66 #66112F
tetradic
#2F6611 #115966 #481166 #661E11
square
#2F6611 #115966 #481166 #661E11
split-complementary
#2F6611 #1E1166 #661159
monochromatic
#0C1A04 #173208 #2F6611 #479A1A #5FCF22

Accessibility & contrast

On white

6.93
#2F6611 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F6611 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6611
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6611#FFFFFF#000000##FFFFFF
##2F66111.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#63581B
Tritanopia (blue-blind)
#2B6256
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f6611;
/* rgb */ color: rgb(47, 102, 17);
/* oklch */ color: oklch(45.5% 0.128 137.3);
Tailwind
colors: {
  custom: {
    50: '#6e9257',
    500: '#2f6611',
    950: '#000000',
  },
}
SCSS
$custom: #2f6611;
$custom-light: #6e9257;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6611",
  "rgb": {
    "r": 47,
    "g": 102,
    "b": 17
  },
  "hsl": {
    "h": 98.824,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.4552,
    "c": 0.12785,
    "h": 137.3
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

primary
#2F6611
secondary
#79359E
accent
#3AEEAE
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2F6611

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

Preview Lab → · Contrast checker → · Palette generator →

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