#2F5C12#2F5C12

#2F5C12 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.6% C 0.114 H 136.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2F5C12
RGBrgb(47, 92, 18)
HSLhsl(96, 67%, 22%)
HSVhsv(96, 80%, 36%)
CMYKcmyk(48.9%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.60, -29.43, 35.32)
CIE-LCHlch(34.60, 45.98, 129.80°)
OKLaboklab(42.64% -0.082 0.0791)
OKLCHoklch(42.64% 0.114 136)
XYZxyz(5.1085, 8.3020, 1.9054)
Luminance0.0830 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C12 #3F125C
analogous
#545C12 #2F5C12 #125C1A
triadic
#2F5C12 #122F5C #5C122F
tetradic
#2F5C12 #12545C #3F125C #5C1A12
square
#2F5C12 #12545C #3F125C #5C1A12
split-complementary
#2F5C12 #1A125C #5C1254
monochromatic
#0D1A05 #152908 #2F5C12 #498F1C #63C226

Accessibility & contrast

On white

7.89
#2F5C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F5C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5C12
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C12#FFFFFF#000000##FFFFFF
##2F5C121.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#2D584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5c12;
/* rgb */ color: rgb(47, 92, 18);
/* oklch */ color: oklch(42.6% 0.114 136.0);
Tailwind
colors: {
  custom: {
    50: '#6c8a56',
    500: '#2f5c12',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c12;
$custom-light: #6c8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c12",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 96.486,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42643,
    "c": 0.1139,
    "h": 136
  },
  "luminance": 0.08302
}

Semantic roles & 50–950 ramp

primary
#2F5C12
secondary
#6F3594
accent
#3EEAA7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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