#2F4917#2F4917

#2F4917 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.2% C 0.082 H 132.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2F4917
RGBrgb(47, 73, 23)
HSLhsl(91, 52%, 19%)
HSVhsv(91, 68%, 29%)
CMYKcmyk(35.6%, 0%, 68.5%, 71.4%)
CIE-LABlab(27.93, -19.75, 26.12)
CIE-LCHlch(27.93, 32.74, 127.10°)
OKLaboklab(37.2% -0.0552 0.0605)
OKLCHoklch(37.2% 0.082 132.4)
XYZxyz(3.7094, 5.4312, 1.6633)
Luminance0.0543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4917 #311749
analogous
#484917 #2F4917 #174918
triadic
#2F4917 #172F49 #49172F
tetradic
#2F4917 #174849 #311749 #491817
square
#2F4917 #174849 #311749 #491817
split-complementary
#2F4917 #181749 #491748
monochromatic
#0F1707 #111A08 #2F4917 #4D7826 #6BA634

Accessibility & contrast

On white

10.07
#2F4917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F4917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4917
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4917#FFFFFF#000000##FFFFFF
##2F49171.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4311
Deuteranopia (green-blind)
#49411B
Tritanopia (blue-blind)
#30463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f4917;
/* rgb */ color: rgb(47, 73, 23);
/* oklch */ color: oklch(37.2% 0.082 132.4);
Tailwind
colors: {
  custom: {
    50: '#6a7c56',
    500: '#2f4917',
    950: '#000000',
  },
}
SCSS
$custom: #2f4917;
$custom-light: #6a7c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4917",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 23
  },
  "hsl": {
    "h": 91.2,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.37199,
    "c": 0.08193,
    "h": 132.4
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#2F4917
secondary
#5F3C80
accent
#4CDC97
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4917

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

Preview Lab → · Contrast checker → · Palette generator →

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