#2F5111#2F5111

#2F5111 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.5% C 0.099 H 133.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F5111
RGBrgb(47, 81, 17)
HSLhsl(92, 65%, 19%)
HSVhsv(92, 79%, 32%)
CMYKcmyk(42%, 0%, 79%, 68.2%)
CIE-LABlab(30.71, -24.35, 31.87)
CIE-LCHlch(30.71, 40.11, 127.38°)
OKLaboklab(39.45% -0.0683 0.0717)
OKLCHoklch(39.45% 0.099 133.6)
XYZxyz(4.2158, 6.5295, 1.5684)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5111 #331151
analogous
#4F5111 #2F5111 #115113
triadic
#2F5111 #112F51 #51112F
tetradic
#2F5111 #114F51 #331151 #511311
square
#2F5111 #114F51 #331151 #511311
split-complementary
#2F5111 #131151 #51114F
monochromatic
#0F1905 #121E06 #2F5111 #4C841C #6AB626

Accessibility & contrast

On white

9.11
#2F5111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F5111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5111
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5111#FFFFFF#000000##FFFFFF
##2F51111.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A06
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#2F4D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5111;
/* rgb */ color: rgb(47, 81, 17);
/* oklch */ color: oklch(39.5% 0.099 133.6);
Tailwind
colors: {
  custom: {
    50: '#6b8254',
    500: '#2f5111',
    950: '#000000',
  },
}
SCSS
$custom: #2f5111;
$custom-light: #6b8254;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5111",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 91.875,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.3945,
    "c": 0.09904,
    "h": 133.6
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#2F5111
secondary
#62348A
accent
#40E899
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5111

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

Preview Lab → · Contrast checker → · Palette generator →

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