#2F5D11#2F5D11

#2F5D11 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 42.9% C 0.116 H 136.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5D11
RGBrgb(47, 93, 17)
HSLhsl(96, 69%, 22%)
HSVhsv(96, 82%, 36%)
CMYKcmyk(49.5%, 0%, 81.7%, 63.5%)
CIE-LABlab(34.95, -29.95, 36.04)
CIE-LCHlch(34.95, 46.86, 129.73°)
OKLaboklab(42.92% -0.0834 0.0804)
OKLCHoklch(42.92% 0.116 136.1)
XYZxyz(5.1877, 8.4732, 1.8923)
Luminance0.0847 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D11 #3F115D
analogous
#555D11 #2F5D11 #115D19
triadic
#2F5D11 #112F5D #5D112F
tetradic
#2F5D11 #11555D #3F115D #5D1911
square
#2F5D11 #11555D #3F115D #5D1911
split-complementary
#2F5D11 #19115D #5D1155
monochromatic
#0D1A05 #152908 #2F5D11 #49911A #63C424

Accessibility & contrast

On white

7.79
#2F5D11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F5D11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5D11
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5D11#FFFFFF#000000##FFFFFF
##2F5D111.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615502
Deuteranopia (green-blind)
#5A5119
Tritanopia (blue-blind)
#2D594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5d11;
/* rgb */ color: rgb(47, 93, 17);
/* oklch */ color: oklch(42.9% 0.116 136.1);
Tailwind
colors: {
  custom: {
    50: '#6d8b56',
    500: '#2f5d11',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d11;
$custom-light: #6d8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d11",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 17
  },
  "hsl": {
    "h": 96.316,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.11588,
    "h": 136.1
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#2F5D11
secondary
#6F3496
accent
#3CECA6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5D11

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

Preview Lab → · Contrast checker → · Palette generator →

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