#2F7512#2F7512

#2F7512 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.8% C 0.146 H 138.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#2F7512
RGBrgb(47, 117, 18)
HSLhsl(102, 73%, 26%)
HSVhsv(102, 85%, 46%)
CMYKcmyk(59.8%, 0%, 84.6%, 54.1%)
CIE-LABlab(43.32, -39.86, 43.59)
CIE-LCHlch(43.32, 59.07, 132.44°)
OKLaboklab(49.82% -0.11 0.0964)
OKLCHoklch(49.82% 0.146 138.8)
XYZxyz(7.6425, 13.3699, 2.7501)
Luminance0.1337 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7512 #581275
analogous
#617512 #2F7512 #127527
triadic
#2F7512 #122F75 #75122F
tetradic
#2F7512 #126175 #581275 #752712
square
#2F7512 #126175 #581275 #752712
split-complementary
#2F7512 #271275 #751261
monochromatic
#0B1B04 #1A400A #2F7512 #44AA1A #5ADD24

Accessibility & contrast

On white

5.72
#2F7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#2F7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7512
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7512#FFFFFF#000000##FFFFFF
##2F75121.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#287163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f7512;
/* rgb */ color: rgb(47, 117, 18);
/* oklch */ color: oklch(49.8% 0.146 138.8);
Tailwind
colors: {
  custom: {
    50: '#719d5a',
    500: '#2f7512',
    950: '#000000',
  },
}
SCSS
$custom: #2f7512;
$custom-light: #719d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7512",
  "rgb": {
    "r": 47,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 102.424,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.4982,
    "c": 0.14626,
    "h": 138.8
  },
  "luminance": 0.13371
}

Semantic roles & 50–950 ramp

primary
#2F7512
secondary
#8A37AC
accent
#38F0BA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7512

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

Preview Lab → · Contrast checker → · Palette generator →

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