#2F4D12#2F4D12

#2F4D12 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.092 H 132.7°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2F4D12
RGBrgb(47, 77, 18)
HSLhsl(91, 62%, 19%)
HSVhsv(91, 77%, 30%)
CMYKcmyk(39%, 0%, 76.6%, 69.8%)
CIE-LABlab(29.30, -22.28, 30.01)
CIE-LCHlch(29.30, 37.38, 126.60°)
OKLaboklab(38.3% -0.0626 0.068)
OKLCHoklch(38.3% 0.092 132.7)
XYZxyz(3.9353, 5.9556, 1.5143)
Luminance0.0596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4D12 #30124D
analogous
#4C4D12 #2F4D12 #124D12
triadic
#2F4D12 #122F4D #4D122F
tetradic
#2F4D12 #124C4D #30124D #4D1212
square
#2F4D12 #124C4D #30124D #4D1212
split-complementary
#2F4D12 #12124D #4D124C
monochromatic
#0F1906 #111B06 #2F4D12 #4D7F1E #6CB029

Accessibility & contrast

On white

9.58
#2F4D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F4D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4D12
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4D12#FFFFFF#000000##FFFFFF
##2F4D121.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504709
Deuteranopia (green-blind)
#4C4417
Tritanopia (blue-blind)
#2F4A41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4d12;
/* rgb */ color: rgb(47, 77, 18);
/* oklch */ color: oklch(38.3% 0.092 132.7);
Tailwind
colors: {
  custom: {
    50: '#6a7f54',
    500: '#2f4d12',
    950: '#000000',
  },
}
SCSS
$custom: #2f4d12;
$custom-light: #6a7f54;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4d12",
  "rgb": {
    "r": 47,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 90.508,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38301,
    "c": 0.09242,
    "h": 132.7
  },
  "luminance": 0.05956
}

Semantic roles & 50–950 ramp

primary
#2F4D12
secondary
#5E3586
accent
#43E595
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4D12

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

Preview Lab → · Contrast checker → · Palette generator →

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