#2F5B18#2F5B18

#2F5B18 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.4% C 0.108 H 136.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2F5B18
RGBrgb(47, 91, 24)
HSLhsl(99, 58%, 23%)
HSVhsv(99, 74%, 36%)
CMYKcmyk(48.4%, 0%, 73.6%, 64.3%)
CIE-LABlab(34.30, -28.48, 32.50)
CIE-LCHlch(34.30, 43.21, 131.23°)
OKLaboklab(42.41% -0.079 0.0741)
OKLCHoklch(42.41% 0.108 136.8)
XYZxyz(5.0781, 8.1521, 2.1699)
Luminance0.0815 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B18 #44185B
analogous
#505B18 #2F5B18 #185B22
triadic
#2F5B18 #182F5B #5B182F
tetradic
#2F5B18 #18505B #44185B #5B2218
square
#2F5B18 #18505B #44185B #5B2218
split-complementary
#2F5B18 #22185B #5B1850
monochromatic
#0D1806 #162B0B #2F5B18 #488B25 #61BC32

Accessibility & contrast

On white

7.98
#2F5B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F5B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5B18
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B18#FFFFFF#000000##FFFFFF
##2F5B181.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530E
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#2D584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5b18;
/* rgb */ color: rgb(47, 91, 24);
/* oklch */ color: oklch(42.4% 0.108 136.8);
Tailwind
colors: {
  custom: {
    50: '#6c8a59',
    500: '#2f5b18',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b18;
$custom-light: #6c8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b18",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 99.403,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.10828,
    "h": 136.8
  },
  "luminance": 0.08152
}

Semantic roles & 50–950 ramp

primary
#2F5B18
secondary
#753D92
accent
#46E1AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F5B18

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

Preview Lab → · Contrast checker → · Palette generator →

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