#2F5A15#2F5A15

#2F5A15 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.109 H 136.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5A15
RGBrgb(47, 90, 21)
HSLhsl(97, 62%, 22%)
HSVhsv(97, 77%, 35%)
CMYKcmyk(47.8%, 0%, 76.7%, 64.7%)
CIE-LABlab(33.92, -28.29, 33.42)
CIE-LCHlch(33.92, 43.79, 130.24°)
OKLaboklab(42.09% -0.0787 0.0756)
OKLCHoklch(42.09% 0.109 136.1)
XYZxyz(4.9637, 7.9705, 1.9862)
Luminance0.0797 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A15 #40155A
analogous
#525A15 #2F5A15 #155A1E
triadic
#2F5A15 #152F5A #5A152F
tetradic
#2F5A15 #15525A #40155A #5A1E15
square
#2F5A15 #15525A #40155A #5A1E15
split-complementary
#2F5A15 #1E155A #5A1552
monochromatic
#0D1906 #152809 #2F5A15 #498C21 #63BD2C

Accessibility & contrast

On white

8.09
#2F5A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F5A15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A15
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A15#FFFFFF#000000##FFFFFF
##2F5A151.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5209
Deuteranopia (green-blind)
#584E1C
Tritanopia (blue-blind)
#2D564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5a15;
/* rgb */ color: rgb(47, 90, 21);
/* oklch */ color: oklch(42.1% 0.109 136.1);
Tailwind
colors: {
  custom: {
    50: '#6c8957',
    500: '#2f5a15',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a15;
$custom-light: #6c8957;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a15",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 21
  },
  "hsl": {
    "h": 97.391,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42089,
    "c": 0.10909,
    "h": 136.1
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#2F5A15
secondary
#703992
accent
#43E5A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5A15

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

Preview Lab → · Contrast checker → · Palette generator →

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