#2F5D12#2F5D12

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

Color values

HEX#2F5D12
RGBrgb(47, 93, 18)
HSLhsl(97, 68%, 22%)
HSVhsv(97, 81%, 36%)
CMYKcmyk(49.5%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.96, -29.88, 35.67)
CIE-LCHlch(34.96, 46.53, 129.95°)
OKLaboklab(42.93% -0.0832 0.0798)
OKLCHoklch(42.93% 0.115 136.2)
XYZxyz(5.1957, 8.4764, 1.9345)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D12 #40125D
analogous
#555D12 #2F5D12 #125D1B
triadic
#2F5D12 #122F5D #5D122F
tetradic
#2F5D12 #12555D #40125D #5D1B12
square
#2F5D12 #12555D #40125D #5D1B12
split-complementary
#2F5D12 #1B125D #5D1255
monochromatic
#0D1A05 #152A08 #2F5D12 #49901C #63C426

Accessibility & contrast

On white

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

On black

2.70
#2F5D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F5D12#FFFFFF#000000##FFFFFF
##2F5D121.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5d12;
/* rgb */ color: rgb(47, 93, 18);
/* oklch */ color: oklch(42.9% 0.115 136.2);
Tailwind
colors: {
  custom: {
    50: '#6d8b56',
    500: '#2f5d12',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d12;
$custom-light: #6d8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d12",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 96.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42932,
    "c": 0.11527,
    "h": 136.2
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#2F5D12
secondary
#703595
accent
#3DEAA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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