#2F5B15#2F5B15

#2F5B15 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.111 H 136.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2F5B15
RGBrgb(47, 91, 21)
HSLhsl(98, 63%, 22%)
HSVhsv(98, 77%, 36%)
CMYKcmyk(48.4%, 0%, 76.9%, 64.3%)
CIE-LABlab(34.27, -28.74, 33.78)
CIE-LCHlch(34.27, 44.35, 130.39°)
OKLaboklab(42.38% -0.0799 0.0763)
OKLCHoklch(42.38% 0.111 136.3)
XYZxyz(5.0486, 8.1403, 2.0145)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5B15 #41155B
analogous
#525B15 #2F5B15 #155B1E
triadic
#2F5B15 #152F5B #5B152F
tetradic
#2F5B15 #15525B #41155B #5B1E15
square
#2F5B15 #15525B #41155B #5B1E15
split-complementary
#2F5B15 #1E155B #5B1552
monochromatic
#0D1906 #15290A #2F5B15 #498D20 #62BE2C

Accessibility & contrast

On white

7.99
#2F5B15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5B15
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5B15#FFFFFF#000000##FFFFFF
##2F5B151.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5309
Deuteranopia (green-blind)
#594F1C
Tritanopia (blue-blind)
#2D574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5b15;
/* rgb */ color: rgb(47, 91, 21);
/* oklch */ color: oklch(42.4% 0.111 136.3);
Tailwind
colors: {
  custom: {
    50: '#6c8a57',
    500: '#2f5b15',
    950: '#000000',
  },
}
SCSS
$custom: #2f5b15;
$custom-light: #6c8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5b15",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 21
  },
  "hsl": {
    "h": 97.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42378,
    "c": 0.11051,
    "h": 136.3
  },
  "luminance": 0.08141
}

Semantic roles & 50–950 ramp

primary
#2F5B15
secondary
#713992
accent
#42E6A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5B15

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

Preview Lab → · Contrast checker → · Palette generator →

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