#2F5F15#2F5F15

#2F5F15 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.116 H 136.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2F5F15
RGBrgb(47, 95, 21)
HSLhsl(99, 64%, 23%)
HSVhsv(99, 78%, 37%)
CMYKcmyk(50.5%, 0%, 77.9%, 62.7%)
CIE-LABlab(35.68, -30.54, 35.20)
CIE-LCHlch(35.68, 46.60, 130.95°)
OKLaboklab(43.53% -0.0848 0.0793)
OKLCHoklch(43.53% 0.116 136.9)
XYZxyz(5.3997, 8.8425, 2.1316)
Luminance0.0884 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F15 #45155F
analogous
#545F15 #2F5F15 #155F20
triadic
#2F5F15 #152F5F #5F152F
tetradic
#2F5F15 #15545F #45155F #5F2015
square
#2F5F15 #15545F #45155F #5F2015
split-complementary
#2F5F15 #20155F #5F1554
monochromatic
#0C1906 #162D0A #2F5F15 #489120 #61C32B

Accessibility & contrast

On white

7.59
#2F5F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F5F15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5F15
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5F15#FFFFFF#000000##FFFFFF
##2F5F151.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625607
Deuteranopia (green-blind)
#5C521C
Tritanopia (blue-blind)
#2C5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5f15;
/* rgb */ color: rgb(47, 95, 21);
/* oklch */ color: oklch(43.5% 0.116 136.9);
Tailwind
colors: {
  custom: {
    50: '#6d8d58',
    500: '#2f5f15',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f15;
$custom-light: #6d8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f15",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 21
  },
  "hsl": {
    "h": 98.919,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43533,
    "c": 0.11608,
    "h": 136.9
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

primary
#2F5F15
secondary
#763A96
accent
#41E7AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5F15

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

Preview Lab → · Contrast checker → · Palette generator →

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