#2F7213#2F7213

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

Color values

HEX#2F7213
RGBrgb(47, 114, 19)
HSLhsl(102, 71%, 26%)
HSVhsv(102, 83%, 45%)
CMYKcmyk(58.8%, 0%, 83.3%, 55.3%)
CIE-LABlab(42.29, -38.63, 42.32)
CIE-LCHlch(42.29, 57.30, 132.39°)
OKLaboklab(48.97% -0.1066 0.0939)
OKLCHoklch(48.97% 0.142 138.6)
XYZxyz(7.3069, 12.6854, 2.6794)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7213 #561372
analogous
#5E7213 #2F7213 #137226
triadic
#2F7213 #132F72 #72132F
tetradic
#2F7213 #135E72 #561372 #722613
square
#2F7213 #135E72 #561372 #722613
split-complementary
#2F7213 #261372 #72135E
monochromatic
#0B1A04 #193E0A #2F7213 #45A61C #5ADB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7213#FFFFFF#000000##FFFFFF
##2F72131.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)
#6D621E
Tritanopia (blue-blind)
#286E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7213;
/* rgb */ color: rgb(47, 114, 19);
/* oklch */ color: oklch(49.0% 0.142 138.6);
Tailwind
colors: {
  custom: {
    50: '#709b5a',
    500: '#2f7213',
    950: '#000000',
  },
}
SCSS
$custom: #2f7213;
$custom-light: #709b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7213",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 102.316,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.4897,
    "c": 0.14208,
    "h": 138.6
  },
  "luminance": 0.12686
}

Semantic roles & 50–950 ramp

primary
#2F7213
secondary
#8738A9
accent
#3AEEB9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7213

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

Preview Lab → · Contrast checker → · Palette generator →

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