#2F5015#2F5015

#2F5015 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.095 H 134.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2F5015
RGBrgb(47, 80, 21)
HSLhsl(94, 58%, 20%)
HSVhsv(94, 74%, 31%)
CMYKcmyk(41.3%, 0%, 73.7%, 68.6%)
CIE-LABlab(30.39, -23.52, 29.76)
CIE-LCHlch(30.39, 37.93, 128.32°)
OKLaboklab(39.2% -0.0657 0.0679)
OKLCHoklch(39.2% 0.095 134.1)
XYZxyz(4.1762, 6.3956, 1.7238)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5015 #361550
analogous
#4D5015 #2F5015 #155018
triadic
#2F5015 #152F50 #50152F
tetradic
#2F5015 #154D50 #361550 #501815
square
#2F5015 #154D50 #361550 #501815
split-complementary
#2F5015 #181550 #50154D
monochromatic
#0E1806 #132008 #2F5015 #4B8022 #68B12E

Accessibility & contrast

On white

9.21
#2F5015 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F5015 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5015
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5015#FFFFFF#000000##FFFFFF
##2F50151.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490D
Deuteranopia (green-blind)
#4F471A
Tritanopia (blue-blind)
#2F4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5015;
/* rgb */ color: rgb(47, 80, 21);
/* oklch */ color: oklch(39.2% 0.095 134.1);
Tailwind
colors: {
  custom: {
    50: '#6b8156',
    500: '#2f5015',
    950: '#000000',
  },
}
SCSS
$custom: #2f5015;
$custom-light: #6b8156;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5015",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 93.559,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39198,
    "c": 0.09451,
    "h": 134.1
  },
  "luminance": 0.06396
}

Semantic roles & 50–950 ramp

primary
#2F5015
secondary
#653988
accent
#46E29D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5015

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

Preview Lab → · Contrast checker → · Palette generator →

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