#2F5912#2F5912

#2F5912 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.110 H 135.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2F5912
RGBrgb(47, 89, 18)
HSLhsl(95, 66%, 21%)
HSVhsv(95, 80%, 35%)
CMYKcmyk(47.2%, 0%, 79.8%, 65.1%)
CIE-LABlab(33.55, -28.06, 34.28)
CIE-LCHlch(33.55, 44.30, 129.30°)
OKLaboklab(41.78% -0.0783 0.0769)
OKLCHoklch(41.78% 0.11 135.5)
XYZxyz(4.8537, 7.7925, 1.8205)
Luminance0.0779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5912 #3C1259
analogous
#525912 #2F5912 #125918
triadic
#2F5912 #122F59 #59122F
tetradic
#2F5912 #125259 #3C1259 #591812
square
#2F5912 #125259 #3C1259 #591812
split-complementary
#2F5912 #181259 #591252
monochromatic
#0D1905 #142608 #2F5912 #4A8C1C #65BF27

Accessibility & contrast

On white

8.21
#2F5912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F5912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5912
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5912#FFFFFF#000000##FFFFFF
##2F59121.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5105
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#2E554B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f5912;
/* rgb */ color: rgb(47, 89, 18);
/* oklch */ color: oklch(41.8% 0.110 135.5);
Tailwind
colors: {
  custom: {
    50: '#6c8855',
    500: '#2f5912',
    950: '#000000',
  },
}
SCSS
$custom: #2f5912;
$custom-light: #6c8855;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5912",
  "rgb": {
    "r": 47,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 95.493,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41775,
    "c": 0.10975,
    "h": 135.5
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#2F5912
secondary
#6C3592
accent
#3FE9A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5912

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

Preview Lab → · Contrast checker → · Palette generator →

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