#2F7A18#2F7A18

#2F7A18 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.149 H 139.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2F7A18
RGBrgb(47, 122, 24)
HSLhsl(106, 67%, 29%)
HSVhsv(106, 80%, 48%)
CMYKcmyk(61.5%, 0%, 80.3%, 52.2%)
CIE-LABlab(45.07, -41.42, 43.29)
CIE-LCHlch(45.07, 59.91, 133.73°)
OKLaboklab(51.28% -0.1139 0.0967)
OKLCHoklch(51.28% 0.149 139.7)
XYZxyz(8.2963, 14.5886, 3.2427)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A18 #63187A
analogous
#607A18 #2F7A18 #187A32
triadic
#2F7A18 #182F7A #7A182F
tetradic
#2F7A18 #18607A #63187A #7A3218
square
#2F7A18 #18607A #63187A #7A3218
split-complementary
#2F7A18 #32187A #7A1860
monochromatic
#0A1A05 #1B470E #2F7A18 #43AD22 #5BD735

Accessibility & contrast

On white

5.36
#2F7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2F7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A18
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A18#FFFFFF#000000##FFFFFF
##2F7A181.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#267668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a18;
/* rgb */ color: rgb(47, 122, 24);
/* oklch */ color: oklch(51.3% 0.149 139.7);
Tailwind
colors: {
  custom: {
    50: '#71a15d',
    500: '#2f7a18',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a18;
$custom-light: #71a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a18",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 105.918,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51276,
    "c": 0.14936,
    "h": 139.7
  },
  "luminance": 0.14589
}

Semantic roles & 50–950 ramp

primary
#2F7A18
secondary
#953FAF
accent
#3EEAC2
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2F7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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