#2F5B0F#2F5B0F

#2F5B0F is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.114 H 135.5°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2F5B0F
RGBrgb(47, 91, 15)
HSLhsl(95, 72%, 21%)
HSVhsv(95, 84%, 36%)
CMYKcmyk(48.4%, 0%, 83.5%, 64.3%)
CIE-LABlab(34.23, -29.18, 36.08)
CIE-LCHlch(34.23, 46.40, 128.97°)
OKLaboklab(42.33% -0.0815 0.0802)
OKLCHoklch(42.33% 0.114 135.5)
XYZxyz(4.9995, 8.1207, 1.7559)
Luminance0.0812 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B0F #3B0F5B
analogous
#555B0F #2F5B0F #0F5B15
triadic
#2F5B0F #0F2F5B #5B0F2F
tetradic
#2F5B0F #0F555B #3B0F5B #5B150F
square
#2F5B0F #0F555B #3B0F5B #5B150F
split-complementary
#2F5B0F #150F5B #5B0F55
monochromatic
#0E1A04 #142606 #2F5B0F #4A9018 #65C420

Accessibility & contrast

On white

8.00
#2F5B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F5B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5B0F
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B0F#FFFFFF#000000##FFFFFF
##2F5B0F1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#2E574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5b0f;
/* rgb */ color: rgb(47, 91, 15);
/* oklch */ color: oklch(42.3% 0.114 135.5);
Tailwind
colors: {
  custom: {
    50: '#6c8a54',
    500: '#2f5b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b0f;
$custom-light: #6c8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b0f",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 94.737,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42332,
    "c": 0.11434,
    "h": 135.5
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#2F5B0F
secondary
#6B3195
accent
#39EEA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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