#2F7F2C#2F7F2C

#2F7F2C is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.142 H 142.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#2F7F2C
RGBrgb(47, 127, 44)
HSLhsl(118, 49%, 34%)
HSVhsv(118, 65%, 50%)
CMYKcmyk(63%, 0%, 65.4%, 50.2%)
CIE-LABlab(46.93, -41.53, 36.98)
CIE-LCHlch(46.93, 55.61, 138.32°)
OKLaboklab(52.86% -0.113 0.0861)
OKLCHoklch(52.86% 0.142 142.7)
XYZxyz(9.2158, 15.9641, 4.9781)
Luminance0.1596 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F2C #7C2C7F
analogous
#587F2C #2F7F2C #2C7F52
triadic
#2F7F2C #2C2F7F #7F2C2F
tetradic
#2F7F2C #2C587F #7C2C7F #7F522C
square
#2F7F2C #2C587F #7C2C7F #7F522C
split-complementary
#2F7F2C #522C7F #7F2C58
monochromatic
#0D240D #1E521C #2F7F2C #40AC3C #62C75E

Accessibility & contrast

On white

5.01
#2F7F2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2F7F2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F2C
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F2C#FFFFFF#000000##FFFFFF
##2F7F2C1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827322
Deuteranopia (green-blind)
#786D33
Tritanopia (blue-blind)
#217B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f2c;
/* rgb */ color: rgb(47, 127, 44);
/* oklch */ color: oklch(52.9% 0.142 142.7);
Tailwind
colors: {
  custom: {
    50: '#71a569',
    500: '#2f7f2c',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f2c;
$custom-light: #71a569;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f2c",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 44
  },
  "hsl": {
    "h": 117.831,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.52864,
    "c": 0.14205,
    "h": 142.7
  },
  "luminance": 0.15965
}

Semantic roles & 50–950 ramp

primary
#2F7F2C
secondary
#AA59AD
accent
#50D8D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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