#2F5D0F#2F5D0F

#2F5D0F is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 42.9% C 0.117 H 135.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#2F5D0F
RGBrgb(47, 93, 15)
HSLhsl(95, 72%, 21%)
HSVhsv(95, 84%, 36%)
CMYKcmyk(49.5%, 0%, 83.9%, 63.5%)
CIE-LABlab(34.94, -30.08, 36.75)
CIE-LCHlch(34.94, 47.49, 129.30°)
OKLaboklab(42.91% -0.0839 0.0816)
OKLCHoklch(42.91% 0.117 135.8)
XYZxyz(5.1727, 8.4672, 1.8136)
Luminance0.0847 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D0F #3D0F5D
analogous
#565D0F #2F5D0F #0F5D16
triadic
#2F5D0F #0F2F5D #5D0F2F
tetradic
#2F5D0F #0F565D #3D0F5D #5D160F
square
#2F5D0F #0F565D #3D0F5D #5D160F
split-complementary
#2F5D0F #160F5D #5D0F56
monochromatic
#0D1A04 #142806 #2F5D0F #4A9217 #64C620

Accessibility & contrast

On white

7.80
#2F5D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F5D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5D0F
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5D0F#FFFFFF#000000##FFFFFF
##2F5D0F1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615500
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#2D594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5d0f;
/* rgb */ color: rgb(47, 93, 15);
/* oklch */ color: oklch(42.9% 0.117 135.8);
Tailwind
colors: {
  custom: {
    50: '#6d8b55',
    500: '#2f5d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d0f;
$custom-light: #6d8b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d0f",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 95.385,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.11703,
    "h": 135.8
  },
  "luminance": 0.08468
}

Semantic roles & 50–950 ramp

primary
#2F5D0F
secondary
#6D3196
accent
#39EFA4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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