#2F7B20#2F7B20

#2F7B20 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.146 H 140.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2F7B20
RGBrgb(47, 123, 32)
HSLhsl(110, 59%, 30%)
HSVhsv(110, 74%, 48%)
CMYKcmyk(61.8%, 0%, 74%, 51.8%)
CIE-LABlab(45.46, -41.19, 40.67)
CIE-LCHlch(45.46, 57.88, 135.36°)
OKLaboklab(51.62% -0.1127 0.0924)
OKLCHoklch(51.62% 0.146 140.7)
XYZxyz(8.5156, 14.8738, 3.7884)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B20 #6C207B
analogous
#5C7B20 #2F7B20 #207B3E
triadic
#2F7B20 #202F7B #7B202F
tetradic
#2F7B20 #205C7B #6C207B #7B3E20
square
#2F7B20 #205C7B #6C207B #7B3E20
split-complementary
#2F7B20 #3E207B #7B205C
monochromatic
#0A1A07 #1C4A13 #2F7B20 #42AC2D #5DCF46

Accessibility & contrast

On white

5.28
#2F7B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2F7B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B20
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B20#FFFFFF#000000##FFFFFF
##2F7B201.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F11
Deuteranopia (green-blind)
#756929
Tritanopia (blue-blind)
#247769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b20;
/* rgb */ color: rgb(47, 123, 32);
/* oklch */ color: oklch(51.6% 0.146 140.7);
Tailwind
colors: {
  custom: {
    50: '#71a261',
    500: '#2f7b20',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b20;
$custom-light: #71a261;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b20",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 110.11,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5162,
    "c": 0.14576,
    "h": 140.7
  },
  "luminance": 0.14875
}

Semantic roles & 50–950 ramp

primary
#2F7B20
secondary
#9D49AE
accent
#46E2C8
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2F7B20

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

Preview Lab → · Contrast checker → · Palette generator →

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