#2F7827#2F7827

#2F7827 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.137 H 141.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#2F7827
RGBrgb(47, 120, 39)
HSLhsl(114, 51%, 31%)
HSVhsv(114, 68%, 47%)
CMYKcmyk(60.8%, 0%, 67.5%, 52.9%)
CIE-LABlab(44.49, -39.33, 36.61)
CIE-LCHlch(44.49, 53.73, 137.05°)
OKLaboklab(50.84% -0.1073 0.0847)
OKLCHoklch(50.84% 0.137 141.7)
XYZxyz(8.2546, 14.1830, 4.2217)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7827 #702778
analogous
#577827 #2F7827 #277847
triadic
#2F7827 #272F78 #78272F
tetradic
#2F7827 #275778 #702778 #784727
square
#2F7827 #275778 #702778 #784727
split-complementary
#2F7827 #472778 #782757
monochromatic
#0B1C09 #1D4A18 #2F7827 #41A636 #5EC752

Accessibility & contrast

On white

5.47
#2F7827 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#2F7827 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7827
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7827#FFFFFF#000000##FFFFFF
##2F78271.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1D
Deuteranopia (green-blind)
#72672E
Tritanopia (blue-blind)
#247467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7827;
/* rgb */ color: rgb(47, 120, 39);
/* oklch */ color: oklch(50.8% 0.137 141.7);
Tailwind
colors: {
  custom: {
    50: '#70a065',
    500: '#2f7827',
    950: '#000000',
  },
}
SCSS
$custom: #2f7827;
$custom-light: #70a065;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7827",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 39
  },
  "hsl": {
    "h": 114.074,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.50841,
    "c": 0.13673,
    "h": 141.7
  },
  "luminance": 0.14184
}

Semantic roles & 50–950 ramp

primary
#2F7827
secondary
#A151AA
accent
#4DDACC
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2F7827

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

Preview Lab → · Contrast checker → · Palette generator →

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