#2F4E17#2F4E17

#2F4E17 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.090 H 133.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2F4E17
RGBrgb(47, 78, 23)
HSLhsl(94, 54%, 20%)
HSVhsv(94, 71%, 31%)
CMYKcmyk(39.7%, 0%, 70.5%, 69.4%)
CIE-LABlab(29.70, -22.33, 28.06)
CIE-LCHlch(29.70, 35.86, 128.51°)
OKLaboklab(38.64% -0.0623 0.0646)
OKLCHoklch(38.64% 0.09 133.9)
XYZxyz(4.0513, 6.1148, 1.7773)
Luminance0.0612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4E17 #36174E
analogous
#4B4E17 #2F4E17 #174E1B
triadic
#2F4E17 #172F4E #4E172F
tetradic
#2F4E17 #174B4E #36174E #4E1B17
square
#2F4E17 #174B4E #36174E #4E1B17
split-complementary
#2F4E17 #1B174E #4E174B
monochromatic
#0E1807 #131F09 #2F4E17 #4B7D25 #68AD33

Accessibility & contrast

On white

9.45
#2F4E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F4E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4E17
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4E17#FFFFFF#000000##FFFFFF
##2F4E171.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514810
Deuteranopia (green-blind)
#4D451B
Tritanopia (blue-blind)
#2F4B43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f4e17;
/* rgb */ color: rgb(47, 78, 23);
/* oklch */ color: oklch(38.6% 0.090 133.9);
Tailwind
colors: {
  custom: {
    50: '#6a8057',
    500: '#2f4e17',
    950: '#000000',
  },
}
SCSS
$custom: #2f4e17;
$custom-light: #6a8057;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4e17",
  "rgb": {
    "r": 47,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 93.818,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.08975,
    "h": 133.9
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#2F4E17
secondary
#653C85
accent
#4ADE9D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4E17

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

Preview Lab → · Contrast checker → · Palette generator →

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