#2F5112#2F5112

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

Color values

HEX#2F5112
RGBrgb(47, 81, 18)
HSLhsl(92, 64%, 19%)
HSVhsv(92, 78%, 32%)
CMYKcmyk(42%, 0%, 77.8%, 68.2%)
CIE-LABlab(30.72, -24.27, 31.45)
CIE-LCHlch(30.72, 39.73, 127.65°)
OKLaboklab(39.46% -0.068 0.071)
OKLCHoklch(39.46% 0.098 133.8)
XYZxyz(4.2238, 6.5327, 1.6105)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5112 #341251
analogous
#4F5112 #2F5112 #125115
triadic
#2F5112 #122F51 #51122F
tetradic
#2F5112 #124F51 #341251 #511512
square
#2F5112 #124F51 #341251 #511512
split-complementary
#2F5112 #151251 #51124F
monochromatic
#0F1906 #121F07 #2F5112 #4C831D #69B528

Accessibility & contrast

On white

9.10
#2F5112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5112
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5112#FFFFFF#000000##FFFFFF
##2F51121.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#504718
Tritanopia (blue-blind)
#2F4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5112;
/* rgb */ color: rgb(47, 81, 18);
/* oklch */ color: oklch(39.5% 0.098 133.8);
Tailwind
colors: {
  custom: {
    50: '#6b8254',
    500: '#2f5112',
    950: '#000000',
  },
}
SCSS
$custom: #2f5112;
$custom-light: #6b8254;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5112",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 92.381,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39459,
    "c": 0.09832,
    "h": 133.8
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#2F5112
secondary
#63358A
accent
#41E79A
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5112

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

Preview Lab → · Contrast checker → · Palette generator →

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