#2F5A12#2F5A12

#2F5A12 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.111 H 135.7°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#2F5A12
RGBrgb(47, 90, 18)
HSLhsl(96, 67%, 21%)
HSVhsv(96, 80%, 35%)
CMYKcmyk(47.8%, 0%, 80%, 64.7%)
CIE-LABlab(33.90, -28.52, 34.63)
CIE-LCHlch(33.90, 44.86, 129.47°)
OKLaboklab(42.06% -0.0795 0.0776)
OKLCHoklch(42.06% 0.111 135.7)
XYZxyz(4.9375, 7.9600, 1.8484)
Luminance0.0796 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5A12 #3D125A
analogous
#535A12 #2F5A12 #125A19
triadic
#2F5A12 #122F5A #5A122F
tetradic
#2F5A12 #12535A #3D125A #5A1912
square
#2F5A12 #12535A #3D125A #5A1912
split-complementary
#2F5A12 #19125A #5A1253
monochromatic
#0D1A05 #142708 #2F5A12 #4A8D1C #64C026

Accessibility & contrast

On white

8.10
#2F5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5A12
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5A12#FFFFFF#000000##FFFFFF
##2F5A121.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5204
Deuteranopia (green-blind)
#584E19
Tritanopia (blue-blind)
#2D564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5a12;
/* rgb */ color: rgb(47, 90, 18);
/* oklch */ color: oklch(42.1% 0.111 135.7);
Tailwind
colors: {
  custom: {
    50: '#6c8956',
    500: '#2f5a12',
    950: '#000000',
  },
}
SCSS
$custom: #2f5a12;
$custom-light: #6c8956;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5a12",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 95.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42064,
    "c": 0.11114,
    "h": 135.7
  },
  "luminance": 0.0796
}

Semantic roles & 50–950 ramp

primary
#2F5A12
secondary
#6D3593
accent
#3EEAA5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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