#2F571A#2F571A

#2F571A is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.3% C 0.101 H 136.6°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2F571A
RGBrgb(47, 87, 26)
HSLhsl(99, 54%, 22%)
HSVhsv(99, 70%, 34%)
CMYKcmyk(46%, 0%, 70.1%, 65.9%)
CIE-LABlab(32.91, -26.42, 30.08)
CIE-LCHlch(32.91, 40.04, 131.30°)
OKLaboklab(41.27% -0.0732 0.0693)
OKLCHoklch(41.27% 0.101 136.6)
XYZxyz(4.7668, 7.4950, 2.1726)
Luminance0.0750 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F571A #421A57
analogous
#4E571A #2F571A #1A5724
triadic
#2F571A #1A2F57 #571A2F
tetradic
#2F571A #1A4E57 #421A57 #57241A
square
#2F571A #1A4E57 #421A57 #57241A
split-complementary
#2F571A #241A57 #571A4E
monochromatic
#0D1807 #16280C #2F571A #488628 #62B536

Accessibility & contrast

On white

8.40
#2F571A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F571A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F571A
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F571A#FFFFFF#000000##FFFFFF
##2F571A1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5012
Deuteranopia (green-blind)
#554C1F
Tritanopia (blue-blind)
#2D544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f571a;
/* rgb */ color: rgb(47, 87, 26);
/* oklch */ color: oklch(41.3% 0.101 136.6);
Tailwind
colors: {
  custom: {
    50: '#6b875a',
    500: '#2f571a',
    950: '#000000',
  },
}
SCSS
$custom: #2f571a;
$custom-light: #6b875a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f571a",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 99.344,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41273,
    "c": 0.1008,
    "h": 136.6
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

primary
#2F571A
secondary
#72408D
accent
#4ADDAB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #2F571A

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

Preview Lab → · Contrast checker → · Palette generator →

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