#2F501C#2F501C

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

Color values

HEX#2F501C
RGBrgb(47, 80, 28)
HSLhsl(98, 48%, 21%)
HSVhsv(98, 65%, 31%)
CMYKcmyk(41.3%, 0%, 65%, 68.6%)
CIE-LABlab(30.46, -22.79, 26.35)
CIE-LCHlch(30.46, 34.84, 130.86°)
OKLaboklab(39.28% -0.0631 0.0616)
OKLCHoklch(39.28% 0.088 135.7)
XYZxyz(4.2504, 6.4253, 2.1146)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F501C #3D1C50
analogous
#49501C #2F501C #1C5023
triadic
#2F501C #1C2F50 #501C2F
tetradic
#2F501C #1C4950 #3D1C50 #50231C
square
#2F501C #1C4950 #3D1C50 #50231C
split-complementary
#2F501C #231C50 #501C49
monochromatic
#0D1708 #14230C #2F501C #4A7D2C #64AB3C

Accessibility & contrast

On white

9.19
#2F501C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F501C
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F501C#FFFFFF#000000##FFFFFF
##2F501C1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534916
Deuteranopia (green-blind)
#4E4720
Tritanopia (blue-blind)
#2E4D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f501c;
/* rgb */ color: rgb(47, 80, 28);
/* oklch */ color: oklch(39.3% 0.088 135.7);
Tailwind
colors: {
  custom: {
    50: '#6a815a',
    500: '#2f501c',
    950: '#000000',
  },
}
SCSS
$custom: #2f501c;
$custom-light: #6a815a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f501c",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 28
  },
  "hsl": {
    "h": 98.077,
    "s": 48.148,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3928,
    "c": 0.0882,
    "h": 135.7
  },
  "luminance": 0.06425
}

Semantic roles & 50–950 ramp

primary
#2F501C
secondary
#6D4286
accent
#50D8A6
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F501C

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

Preview Lab → · Contrast checker → · Palette generator →

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