#2F7D18#2F7D18

#2F7D18 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.153 H 139.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2F7D18
RGBrgb(47, 125, 24)
HSLhsl(106, 68%, 29%)
HSVhsv(106, 81%, 49%)
CMYKcmyk(62.4%, 0%, 80.8%, 51%)
CIE-LABlab(46.09, -42.56, 44.28)
CIE-LCHlch(46.09, 61.41, 133.87°)
OKLaboklab(52.13% -0.1169 0.0987)
OKLCHoklch(52.13% 0.153 139.8)
XYZxyz(8.6704, 15.3367, 3.3673)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D18 #66187D
analogous
#627D18 #2F7D18 #187D34
triadic
#2F7D18 #182F7D #7D182F
tetradic
#2F7D18 #18627D #66187D #7D3418
square
#2F7D18 #18627D #66187D #7D3418
split-complementary
#2F7D18 #34187D #7D1862
monochromatic
#0A1A05 #1C4A0E #2F7D18 #42B022 #5CD937

Accessibility & contrast

On white

5.16
#2F7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2F7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D18
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D18#FFFFFF#000000##FFFFFF
##2F7D181.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#25796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d18;
/* rgb */ color: rgb(47, 125, 24);
/* oklch */ color: oklch(52.1% 0.153 139.8);
Tailwind
colors: {
  custom: {
    50: '#72a35e',
    500: '#2f7d18',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d18;
$custom-light: #72a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d18",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 106.337,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52125,
    "c": 0.15304,
    "h": 139.8
  },
  "luminance": 0.15338
}

Semantic roles & 50–950 ramp

primary
#2F7D18
secondary
#983FB2
accent
#3DEBC3
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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