#2F7210#2F7210

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

Color values

HEX#2F7210
RGBrgb(47, 114, 16)
HSLhsl(101, 75%, 25%)
HSVhsv(101, 86%, 45%)
CMYKcmyk(58.8%, 0%, 86%, 55.3%)
CIE-LABlab(42.27, -38.80, 43.22)
CIE-LCHlch(42.27, 58.08, 131.91°)
OKLaboklab(48.95% -0.1073 0.0953)
OKLCHoklch(48.95% 0.143 138.4)
XYZxyz(7.2829, 12.6758, 2.5530)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7210 #531072
analogous
#607210 #2F7210 #107222
triadic
#2F7210 #102F72 #72102F
tetradic
#2F7210 #106072 #531072 #722210
square
#2F7210 #106072 #531072 #722210
split-complementary
#2F7210 #221072 #721060
monochromatic
#0B1B04 #193C08 #2F7210 #45A818 #5BDD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7210#FFFFFF#000000##FFFFFF
##2F72101.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)
#6D621C
Tritanopia (blue-blind)
#296E60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7210;
/* rgb */ color: rgb(47, 114, 16);
/* oklch */ color: oklch(49.0% 0.143 138.4);
Tailwind
colors: {
  custom: {
    50: '#709b59',
    500: '#2f7210',
    950: '#000000',
  },
}
SCSS
$custom: #2f7210;
$custom-light: #709b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7210",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 16
  },
  "hsl": {
    "h": 101.02,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48954,
    "c": 0.14349,
    "h": 138.4
  },
  "luminance": 0.12676
}

Semantic roles & 50–950 ramp

primary
#2F7210
secondary
#8434A9
accent
#36F2B6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7210

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

Preview Lab → · Contrast checker → · Palette generator →

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