#2F6812#2F6812

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

Color values

HEX#2F6812
RGBrgb(47, 104, 18)
HSLhsl(100, 70%, 24%)
HSVhsv(100, 83%, 41%)
CMYKcmyk(54.8%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.81, -34.63, 39.37)
CIE-LCHlch(38.81, 52.44, 131.33°)
OKLaboklab(46.1% -0.096 0.0876)
OKLCHoklch(46.1% 0.13 137.6)
XYZxyz(6.2316, 10.5482, 2.2798)
Luminance0.1055 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6812 #4B1268
analogous
#5A6812 #2F6812 #126820
triadic
#2F6812 #122F68 #68122F
tetradic
#2F6812 #125A68 #4B1268 #682012
square
#2F6812 #125A68 #4B1268 #682012
split-complementary
#2F6812 #201268 #68125A
monochromatic
#0C1A05 #173409 #2F6812 #479C1B #5ED024

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F6812#FFFFFF#000000##FFFFFF
##2F68121.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)
#645A1C
Tritanopia (blue-blind)
#2B6458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f6812;
/* rgb */ color: rgb(47, 104, 18);
/* oklch */ color: oklch(46.1% 0.130 137.6);
Tailwind
colors: {
  custom: {
    50: '#6e9458',
    500: '#2f6812',
    950: '#000000',
  },
}
SCSS
$custom: #2f6812;
$custom-light: #6e9458;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6812",
  "rgb": {
    "r": 47,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 99.767,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.46101,
    "c": 0.1299,
    "h": 137.6
  },
  "luminance": 0.10549
}

Semantic roles & 50–950 ramp

primary
#2F6812
secondary
#7C36A0
accent
#3BEDB1
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #2F6812

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

Preview Lab → · Contrast checker → · Palette generator →

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