#2F5218#2F5218

#2F5218 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.095 H 135.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2F5218
RGBrgb(47, 82, 24)
HSLhsl(96, 55%, 21%)
HSVhsv(96, 71%, 32%)
CMYKcmyk(42.7%, 0%, 70.7%, 67.8%)
CIE-LABlab(31.13, -24.22, 29.11)
CIE-LCHlch(31.13, 37.87, 129.75°)
OKLaboklab(39.81% -0.0674 0.067)
OKLCHoklch(39.81% 0.095 135.2)
XYZxyz(4.3544, 6.7047, 1.9287)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5218 #3B1852
analogous
#4C5218 #2F5218 #18521E
triadic
#2F5218 #182F52 #52182F
tetradic
#2F5218 #184C52 #3B1852 #521E18
square
#2F5218 #184C52 #3B1852 #521E18
split-complementary
#2F5218 #1E1852 #52184C
monochromatic
#0E1807 #14230A #2F5218 #4A8126 #65B134

Accessibility & contrast

On white

8.97
#2F5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5218
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5218#FFFFFF#000000##FFFFFF
##2F52181.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#50481D
Tritanopia (blue-blind)
#2E4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5218;
/* rgb */ color: rgb(47, 82, 24);
/* oklch */ color: oklch(39.8% 0.095 135.2);
Tailwind
colors: {
  custom: {
    50: '#6b8358',
    500: '#2f5218',
    950: '#000000',
  },
}
SCSS
$custom: #2f5218;
$custom-light: #6b8358;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5218",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 96.207,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39808,
    "c": 0.095,
    "h": 135.2
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#2F5218
secondary
#6B3D89
accent
#4ADEA3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5218

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

Preview Lab → · Contrast checker → · Palette generator →

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