#2F7820#2F7820

#2F7820 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.8% C 0.142 H 140.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#2F7820
RGBrgb(47, 120, 32)
HSLhsl(110, 58%, 30%)
HSVhsv(110, 73%, 47%)
CMYKcmyk(60.8%, 0%, 73.3%, 52.9%)
CIE-LABlab(44.43, -40.02, 39.61)
CIE-LCHlch(44.43, 56.31, 135.29°)
OKLaboklab(50.77% -0.1096 0.0902)
OKLCHoklch(50.77% 0.142 140.6)
XYZxyz(8.1491, 14.1408, 3.6662)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7820 #692078
analogous
#5B7820 #2F7820 #20783D
triadic
#2F7820 #202F78 #78202F
tetradic
#2F7820 #205B78 #692078 #783D20
square
#2F7820 #205B78 #692078 #783D20
split-complementary
#2F7820 #3D2078 #78205B
monochromatic
#091806 #1C4813 #2F7820 #42A82D #5CCD45

Accessibility & contrast

On white

5.49
#2F7820 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#2F7820 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7820
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7820#FFFFFF#000000##FFFFFF
##2F78201.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D12
Deuteranopia (green-blind)
#726729
Tritanopia (blue-blind)
#257467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7820;
/* rgb */ color: rgb(47, 120, 32);
/* oklch */ color: oklch(50.8% 0.142 140.6);
Tailwind
colors: {
  custom: {
    50: '#71a061',
    500: '#2f7820',
    950: '#000000',
  },
}
SCSS
$custom: #2f7820;
$custom-light: #71a061;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7820",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 32
  },
  "hsl": {
    "h": 109.773,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50772,
    "c": 0.14192,
    "h": 140.6
  },
  "luminance": 0.14142
}

Semantic roles & 50–950 ramp

primary
#2F7820
secondary
#9A48AB
accent
#47E1C7
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F7820

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

Preview Lab → · Contrast checker → · Palette generator →

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