#2F5C0F#2F5C0F

#2F5C0F is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.6% C 0.116 H 135.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2F5C0F
RGBrgb(47, 92, 15)
HSLhsl(95, 72%, 21%)
HSVhsv(95, 84%, 36%)
CMYKcmyk(48.9%, 0%, 83.7%, 63.9%)
CIE-LABlab(34.59, -29.63, 36.41)
CIE-LCHlch(34.59, 46.95, 129.14°)
OKLaboklab(42.62% -0.0827 0.0809)
OKLCHoklch(42.62% 0.116 135.7)
XYZxyz(5.0855, 8.2928, 1.7845)
Luminance0.0829 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C0F #3C0F5C
analogous
#555C0F #2F5C0F #0F5C15
triadic
#2F5C0F #0F2F5C #5C0F2F
tetradic
#2F5C0F #0F555C #3C0F5C #5C150F
square
#2F5C0F #0F555C #3C0F5C #5C150F
split-complementary
#2F5C0F #150F5C #5C0F55
monochromatic
#0D1A04 #142706 #2F5C0F #4A9118 #65C520

Accessibility & contrast

On white

7.90
#2F5C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F5C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5C0F
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C0F#FFFFFF#000000##FFFFFF
##2F5C0F1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#2D584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5c0f;
/* rgb */ color: rgb(47, 92, 15);
/* oklch */ color: oklch(42.6% 0.116 135.7);
Tailwind
colors: {
  custom: {
    50: '#6d8a55',
    500: '#2f5c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c0f;
$custom-light: #6d8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c0f",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 15
  },
  "hsl": {
    "h": 95.065,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42621,
    "c": 0.11569,
    "h": 135.7
  },
  "luminance": 0.08293
}

Semantic roles & 50–950 ramp

primary
#2F5C0F
secondary
#6C3195
accent
#39EFA3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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