#2F5612#2F5612

#2F5612 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 40.9% C 0.106 H 134.9°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2F5612
RGBrgb(47, 86, 18)
HSLhsl(94, 65%, 20%)
HSVhsv(94, 79%, 34%)
CMYKcmyk(45.3%, 0%, 79.1%, 66.3%)
CIE-LABlab(32.49, -26.67, 33.23)
CIE-LCHlch(32.49, 42.61, 128.74°)
OKLaboklab(40.91% -0.0745 0.0747)
OKLCHoklch(40.91% 0.106 134.9)
XYZxyz(4.6092, 7.3033, 1.7390)
Luminance0.0730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5612 #391256
analogous
#515612 #2F5612 #125617
triadic
#2F5612 #122F56 #56122F
tetradic
#2F5612 #125156 #391256 #561712
square
#2F5612 #125156 #391256 #561712
split-complementary
#2F5612 #171256 #561251
monochromatic
#0E1905 #132307 #2F5612 #4B891D #66BB27

Accessibility & contrast

On white

8.53
#2F5612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F5612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5612
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5612#FFFFFF#000000##FFFFFF
##2F56121.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#2E5249
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f5612;
/* rgb */ color: rgb(47, 86, 18);
/* oklch */ color: oklch(40.9% 0.106 134.9);
Tailwind
colors: {
  custom: {
    50: '#6c8655',
    500: '#2f5612',
    950: '#000000',
  },
}
SCSS
$custom: #2f5612;
$custom-light: #6c8655;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5612",
  "rgb": {
    "r": 47,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 94.412,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40907,
    "c": 0.10551,
    "h": 134.9
  },
  "luminance": 0.07304
}

Semantic roles & 50–950 ramp

primary
#2F5612
secondary
#68358F
accent
#3FE8A0
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5612

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

Preview Lab → · Contrast checker → · Palette generator →

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