#2F4715#2F4715

#2F4715 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.081 H 131.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2F4715
RGBrgb(47, 71, 21)
HSLhsl(89, 54%, 18%)
HSVhsv(89, 70%, 28%)
CMYKcmyk(33.8%, 0%, 70.4%, 72.2%)
CIE-LABlab(27.20, -18.90, 26.34)
CIE-LCHlch(27.20, 32.42, 125.66°)
OKLaboklab(36.6% -0.0531 0.0607)
OKLCHoklch(36.6% 0.081 131.2)
XYZxyz(3.5608, 5.1648, 1.5186)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4715 #2D1547
analogous
#474615 #2F4715 #164715
triadic
#2F4715 #152F47 #47152F
tetradic
#2F4715 #154746 #2D1547 #471516
square
#2F4715 #154746 #2D1547 #471516
split-complementary
#2F4715 #151647 #461547
monochromatic
#101807 #101807 #2F4715 #4E7623 #6EA531

Accessibility & contrast

On white

10.33
#2F4715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F4715 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4715
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4715#FFFFFF#000000##FFFFFF
##2F47151.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410F
Deuteranopia (green-blind)
#474019
Tritanopia (blue-blind)
#30443D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f4715;
/* rgb */ color: rgb(47, 71, 21);
/* oklch */ color: oklch(36.6% 0.081 131.2);
Tailwind
colors: {
  custom: {
    50: '#6a7a55',
    500: '#2f4715',
    950: '#000000',
  },
}
SCSS
$custom: #2f4715;
$custom-light: #6a7a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4715",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 21
  },
  "hsl": {
    "h": 88.8,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36598,
    "c": 0.08065,
    "h": 131.2
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#2F4715
secondary
#5B397F
accent
#4ADE91
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2F4715

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

Preview Lab → · Contrast checker → · Palette generator →

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