#2F7214#2F7214

#2F7214 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.142 H 138.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2F7214
RGBrgb(47, 114, 20)
HSLhsl(103, 70%, 26%)
HSVhsv(103, 82%, 45%)
CMYKcmyk(58.8%, 0%, 82.5%, 55.3%)
CIE-LABlab(42.29, -38.57, 42.00)
CIE-LCHlch(42.29, 57.02, 132.56°)
OKLaboklab(48.98% -0.1064 0.0934)
OKLCHoklch(48.98% 0.142 138.7)
XYZxyz(7.3156, 12.6889, 2.7254)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7214 #571472
analogous
#5E7214 #2F7214 #147228
triadic
#2F7214 #142F72 #72142F
tetradic
#2F7214 #145E72 #571472 #722814
square
#2F7214 #145E72 #571472 #722814
split-complementary
#2F7214 #281472 #72145E
monochromatic
#0B1A05 #1A3E0B #2F7214 #44A61D #5AD927

Accessibility & contrast

On white

5.94
#2F7214 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2F7214 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7214
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7214#FFFFFF#000000##FFFFFF
##2F72141.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D621F
Tritanopia (blue-blind)
#286E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7214;
/* rgb */ color: rgb(47, 114, 20);
/* oklch */ color: oklch(49.0% 0.142 138.7);
Tailwind
colors: {
  custom: {
    50: '#709b5a',
    500: '#2f7214',
    950: '#000000',
  },
}
SCSS
$custom: #2f7214;
$custom-light: #709b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7214",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 20
  },
  "hsl": {
    "h": 102.766,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.14157,
    "h": 138.7
  },
  "luminance": 0.12689
}

Semantic roles & 50–950 ramp

primary
#2F7214
secondary
#8839A8
accent
#3BEDBA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7214

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

Preview Lab → · Contrast checker → · Palette generator →

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