#2F6412#2F6412

#2F6412 is a dark, vivid yellow-green. Relative luminance 0.098; OKLCH L 45.0% C 0.125 H 137.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2F6412
RGBrgb(47, 100, 18)
HSLhsl(99, 69%, 23%)
HSVhsv(99, 82%, 39%)
CMYKcmyk(53%, 0%, 82%, 60.8%)
CIE-LABlab(37.41, -32.94, 38.04)
CIE-LCHlch(37.41, 50.32, 130.89°)
OKLaboklab(44.95% -0.0914 0.0848)
OKLCHoklch(44.95% 0.125 137.2)
XYZxyz(5.8385, 9.7619, 2.1487)
Luminance0.0976 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6412 #471264
analogous
#586412 #2F6412 #12641E
triadic
#2F6412 #122F64 #64122F
tetradic
#2F6412 #125864 #471264 #641E12
square
#2F6412 #125864 #471264 #641E12
split-complementary
#2F6412 #1E1264 #641258
monochromatic
#0C1A05 #173009 #2F6412 #47981B #60CC25

Accessibility & contrast

On white

7.11
#2F6412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F6412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6412
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6412#FFFFFF#000000##FFFFFF
##2F64121.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B00
Deuteranopia (green-blind)
#61561B
Tritanopia (blue-blind)
#2C6055
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f6412;
/* rgb */ color: rgb(47, 100, 18);
/* oklch */ color: oklch(45.0% 0.125 137.2);
Tailwind
colors: {
  custom: {
    50: '#6e9157',
    500: '#2f6412',
    950: '#000000',
  },
}
SCSS
$custom: #2f6412;
$custom-light: #6e9157;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6412",
  "rgb": {
    "r": 47,
    "g": 100,
    "b": 18
  },
  "hsl": {
    "h": 98.78,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44951,
    "c": 0.12468,
    "h": 137.2
  },
  "luminance": 0.09762
}

Semantic roles & 50–950 ramp

primary
#2F6412
secondary
#78369C
accent
#3BECAE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #2F6412

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

Preview Lab → · Contrast checker → · Palette generator →

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