#2F5F11#2F5F11

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

Color values

HEX#2F5F11
RGBrgb(47, 95, 17)
HSLhsl(97, 70%, 22%)
HSVhsv(97, 82%, 37%)
CMYKcmyk(50.5%, 0%, 82.1%, 62.7%)
CIE-LABlab(35.65, -30.84, 36.72)
CIE-LCHlch(35.65, 47.95, 130.03°)
OKLaboklab(43.5% -0.0858 0.0818)
OKLCHoklch(43.5% 0.119 136.4)
XYZxyz(5.3655, 8.8289, 1.9516)
Luminance0.0883 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5F11 #41115F
analogous
#565F11 #2F5F11 #115F1A
triadic
#2F5F11 #112F5F #5F112F
tetradic
#2F5F11 #11565F #41115F #5F1A11
square
#2F5F11 #11565F #41115F #5F1A11
split-complementary
#2F5F11 #1A115F #5F1156
monochromatic
#0D1A05 #152B08 #2F5F11 #49931A #62C724

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5F11#FFFFFF#000000##FFFFFF
##2F5F111.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)
#635601
Deuteranopia (green-blind)
#5C5219
Tritanopia (blue-blind)
#2D5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5f11;
/* rgb */ color: rgb(47, 95, 17);
/* oklch */ color: oklch(43.5% 0.119 136.4);
Tailwind
colors: {
  custom: {
    50: '#6d8d56',
    500: '#2f5f11',
    950: '#000000',
  },
}
SCSS
$custom: #2f5f11;
$custom-light: #6d8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5f11",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 17
  },
  "hsl": {
    "h": 96.923,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43502,
    "c": 0.11859,
    "h": 136.4
  },
  "luminance": 0.08829
}

Semantic roles & 50–950 ramp

primary
#2F5F11
secondary
#713498
accent
#3BECA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5F11

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

Preview Lab → · Contrast checker → · Palette generator →

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