#2F501E#2F501E

#2F501E is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.086 H 136.3°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2F501E
RGBrgb(47, 80, 30)
HSLhsl(100, 45%, 22%)
HSVhsv(100, 63%, 31%)
CMYKcmyk(41.3%, 0%, 62.5%, 68.6%)
CIE-LABlab(30.48, -22.55, 25.30)
CIE-LCHlch(30.48, 33.89, 131.70°)
OKLaboklab(39.31% -0.0623 0.0596)
OKLCHoklch(39.31% 0.086 136.3)
XYZxyz(4.2752, 6.4352, 2.2449)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F501E #3F1E50
analogous
#48501E #2F501E #1E5026
triadic
#2F501E #1E2F50 #501E2F
tetradic
#2F501E #1E4850 #3F1E50 #50261E
square
#2F501E #1E4850 #3F1E50 #50261E
split-complementary
#2F501E #261E50 #501E48
monochromatic
#0D1608 #15230D #2F501E #497D2F #63A93F

Accessibility & contrast

On white

9.18
#2F501E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F501E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F501E
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F501E#FFFFFF#000000##FFFFFF
##2F501E1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A19
Deuteranopia (green-blind)
#4E4722
Tritanopia (blue-blind)
#2E4D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f501e;
/* rgb */ color: rgb(47, 80, 30);
/* oklch */ color: oklch(39.3% 0.086 136.3);
Tailwind
colors: {
  custom: {
    50: '#6a815c',
    500: '#2f501e',
    950: '#000000',
  },
}
SCSS
$custom: #2f501e;
$custom-light: #6a815c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f501e",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 30
  },
  "hsl": {
    "h": 99.6,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.39307,
    "c": 0.0862,
    "h": 136.3
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

primary
#2F501E
secondary
#6F4585
accent
#53D5A9
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F501E

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

Preview Lab → · Contrast checker → · Palette generator →

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