#2F5E12#2F5E12

#2F5E12 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.2% C 0.117 H 136.3°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#2F5E12
RGBrgb(47, 94, 18)
HSLhsl(97, 68%, 22%)
HSVhsv(97, 81%, 37%)
CMYKcmyk(50%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.31, -30.32, 36.01)
CIE-LCHlch(35.31, 47.08, 130.10°)
OKLaboklab(43.22% -0.0844 0.0805)
OKLCHoklch(43.22% 0.117 136.3)
XYZxyz(5.2840, 8.6531, 1.9639)
Luminance0.0865 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5E12 #41125E
analogous
#555E12 #2F5E12 #125E1B
triadic
#2F5E12 #122F5E #5E122F
tetradic
#2F5E12 #12555E #41125E #5E1B12
square
#2F5E12 #12555E #41125E #5E1B12
split-complementary
#2F5E12 #1B125E #5E1255
monochromatic
#0D1A05 #152B08 #2F5E12 #49911C #62C526

Accessibility & contrast

On white

7.69
#2F5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F5E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5E12
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5E12#FFFFFF#000000##FFFFFF
##2F5E121.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625503
Deuteranopia (green-blind)
#5B521A
Tritanopia (blue-blind)
#2D5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f5e12;
/* rgb */ color: rgb(47, 94, 18);
/* oklch */ color: oklch(43.2% 0.117 136.3);
Tailwind
colors: {
  custom: {
    50: '#6d8c56',
    500: '#2f5e12',
    950: '#000000',
  },
}
SCSS
$custom: #2f5e12;
$custom-light: #6d8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5e12",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 97.105,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43221,
    "c": 0.11664,
    "h": 136.3
  },
  "luminance": 0.08653
}

Semantic roles & 50–950 ramp

primary
#2F5E12
secondary
#713596
accent
#3DEBA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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