#2F6712#2F6712

#2F6712 is a mid, vivid yellow-green. Relative luminance 0.103; OKLCH L 45.8% C 0.129 H 137.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2F6712
RGBrgb(47, 103, 18)
HSLhsl(100, 70%, 24%)
HSVhsv(100, 83%, 40%)
CMYKcmyk(54.4%, 0%, 82.5%, 59.6%)
CIE-LABlab(38.46, -34.21, 39.04)
CIE-LCHlch(38.46, 51.91, 131.23°)
OKLaboklab(45.81% -0.0948 0.0869)
OKLCHoklch(45.81% 0.129 137.5)
XYZxyz(6.1315, 10.3480, 2.2464)
Luminance0.1035 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6712 #4A1267
analogous
#596712 #2F6712 #12671F
triadic
#2F6712 #122F67 #67122F
tetradic
#2F6712 #125967 #4A1267 #671F12
square
#2F6712 #125967 #4A1267 #671F12
split-complementary
#2F6712 #1F1267 #671259
monochromatic
#0C1A05 #173309 #2F6712 #479B1B #5FCF24

Accessibility & contrast

On white

6.84
#2F6712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F6712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6712
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6712#FFFFFF#000000##FFFFFF
##2F67121.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5D00
Deuteranopia (green-blind)
#63591C
Tritanopia (blue-blind)
#2B6357
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f6712;
/* rgb */ color: rgb(47, 103, 18);
/* oklch */ color: oklch(45.8% 0.129 137.5);
Tailwind
colors: {
  custom: {
    50: '#6e9358',
    500: '#2f6712',
    950: '#000000',
  },
}
SCSS
$custom: #2f6712;
$custom-light: #6e9358;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6712",
  "rgb": {
    "r": 47,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 99.529,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.45814,
    "c": 0.12861,
    "h": 137.5
  },
  "luminance": 0.10349
}

Semantic roles & 50–950 ramp

primary
#2F6712
secondary
#7B369F
accent
#3BEDB0
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2F6712

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

Preview Lab → · Contrast checker → · Palette generator →

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