#2F5C15#2F5C15

#2F5C15 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.112 H 136.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2F5C15
RGBrgb(47, 92, 21)
HSLhsl(98, 63%, 22%)
HSVhsv(98, 77%, 36%)
CMYKcmyk(48.9%, 0%, 77.2%, 63.9%)
CIE-LABlab(34.63, -29.20, 34.14)
CIE-LCHlch(34.63, 44.92, 130.54°)
OKLaboklab(42.67% -0.0811 0.0771)
OKLCHoklch(42.67% 0.112 136.5)
XYZxyz(5.1347, 8.3124, 2.0432)
Luminance0.0831 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C15 #42155C
analogous
#535C15 #2F5C15 #155C1E
triadic
#2F5C15 #152F5C #5C152F
tetradic
#2F5C15 #15535C #42155C #5C1E15
square
#2F5C15 #15535C #42155C #5C1E15
split-complementary
#2F5C15 #1E155C #5C1553
monochromatic
#0D1906 #162A0A #2F5C15 #488E20 #62C02C

Accessibility & contrast

On white

7.89
#2F5C15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5C15
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C15#FFFFFF#000000##FFFFFF
##2F5C151.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5409
Deuteranopia (green-blind)
#59501C
Tritanopia (blue-blind)
#2D584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5c15;
/* rgb */ color: rgb(47, 92, 21);
/* oklch */ color: oklch(42.7% 0.112 136.5);
Tailwind
colors: {
  custom: {
    50: '#6c8a57',
    500: '#2f5c15',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c15;
$custom-light: #6c8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c15",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 21
  },
  "hsl": {
    "h": 98.028,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42667,
    "c": 0.11191,
    "h": 136.5
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#2F5C15
secondary
#723993
accent
#42E6AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5C15

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

Preview Lab → · Contrast checker → · Palette generator →

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