#2F6811#2F6811

#2F6811 is a mid, vivid yellow-green. Relative luminance 0.105; OKLCH L 46.1% C 0.130 H 137.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#2F6811
RGBrgb(47, 104, 17)
HSLhsl(99, 72%, 24%)
HSVhsv(99, 84%, 41%)
CMYKcmyk(54.8%, 0%, 83.7%, 59.2%)
CIE-LABlab(38.80, -34.69, 39.71)
CIE-LCHlch(38.80, 52.73, 131.14°)
OKLaboklab(46.1% -0.0962 0.0881)
OKLCHoklch(46.1% 0.13 137.5)
XYZxyz(6.2236, 10.5450, 2.2376)
Luminance0.1055 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6811 #4A1168
analogous
#5A6811 #2F6811 #11681E
triadic
#2F6811 #112F68 #68112F
tetradic
#2F6811 #115A68 #4A1168 #681E11
square
#2F6811 #115A68 #4A1168 #681E11
split-complementary
#2F6811 #1E1168 #68115A
monochromatic
#0C1A04 #173308 #2F6811 #479D1A #5FD122

Accessibility & contrast

On white

6.75
#2F6811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F6811 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6811
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6811#FFFFFF#000000##FFFFFF
##2F68111.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5E00
Deuteranopia (green-blind)
#645A1B
Tritanopia (blue-blind)
#2B6458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f6811;
/* rgb */ color: rgb(47, 104, 17);
/* oklch */ color: oklch(46.1% 0.130 137.5);
Tailwind
colors: {
  custom: {
    50: '#6e9457',
    500: '#2f6811',
    950: '#000000',
  },
}
SCSS
$custom: #2f6811;
$custom-light: #6e9457;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6811",
  "rgb": {
    "r": 47,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 99.31,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46095,
    "c": 0.13044,
    "h": 137.5
  },
  "luminance": 0.10545
}

Semantic roles & 50–950 ramp

primary
#2F6811
secondary
#7B35A0
accent
#39EFB0
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2F6811

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

Preview Lab → · Contrast checker → · Palette generator →

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