#2F5418#2F5418

#2F5418 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.098 H 135.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2F5418
RGBrgb(47, 84, 24)
HSLhsl(97, 56%, 21%)
HSVhsv(97, 71%, 33%)
CMYKcmyk(44%, 0%, 71.4%, 67.1%)
CIE-LABlab(31.83, -25.19, 29.88)
CIE-LCHlch(31.83, 39.08, 130.13°)
OKLaboklab(40.39% -0.07 0.0686)
OKLCHoklch(40.39% 0.098 135.6)
XYZxyz(4.5074, 7.0107, 1.9797)
Luminance0.0701 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5418 #3D1854
analogous
#4D5418 #2F5418 #18541F
triadic
#2F5418 #182F54 #54182F
tetradic
#2F5418 #184D54 #3D1854 #541F18
square
#2F5418 #184D54 #3D1854 #541F18
split-complementary
#2F5418 #1F1854 #54184D
monochromatic
#0D1807 #14240A #2F5418 #4A8426 #64B333

Accessibility & contrast

On white

8.74
#2F5418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F5418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5418
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5418#FFFFFF#000000##FFFFFF
##2F54181.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D10
Deuteranopia (green-blind)
#524A1D
Tritanopia (blue-blind)
#2E5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f5418;
/* rgb */ color: rgb(47, 84, 24);
/* oklch */ color: oklch(40.4% 0.098 135.6);
Tailwind
colors: {
  custom: {
    50: '#6b8458',
    500: '#2f5418',
    950: '#000000',
  },
}
SCSS
$custom: #2f5418;
$custom-light: #6b8458;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5418",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 24
  },
  "hsl": {
    "h": 97,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40386,
    "c": 0.09802,
    "h": 135.6
  },
  "luminance": 0.07011
}

Semantic roles & 50–950 ramp

primary
#2F5418
secondary
#6D3D8B
accent
#49DFA5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5418

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

Preview Lab → · Contrast checker → · Palette generator →

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