#2F7F25#2F7F25

#2F7F25 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.147 H 141.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2F7F25
RGBrgb(47, 127, 37)
HSLhsl(113, 55%, 32%)
HSVhsv(113, 71%, 50%)
CMYKcmyk(63%, 0%, 70.9%, 50.2%)
CIE-LABlab(46.86, -42.27, 40.05)
CIE-LCHlch(46.86, 58.23, 136.54°)
OKLaboklab(52.79% -0.1154 0.0918)
OKLCHoklch(52.79% 0.147 141.5)
XYZxyz(9.0951, 15.9158, 4.3427)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F25 #75257F
analogous
#5C7F25 #2F7F25 #257F48
triadic
#2F7F25 #252F7F #7F252F
tetradic
#2F7F25 #255C7F #75257F #7F4825
square
#2F7F25 #255C7F #75257F #7F4825
split-complementary
#2F7F25 #48257F #7F255C
monochromatic
#0C2009 #1D5017 #2F7F25 #41AE33 #5FCD52

Accessibility & contrast

On white

5.02
#2F7F25 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2F7F25 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F25
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F25#FFFFFF#000000##FFFFFF
##2F7F251.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827318
Deuteranopia (green-blind)
#786D2D
Tritanopia (blue-blind)
#227B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f25;
/* rgb */ color: rgb(47, 127, 37);
/* oklch */ color: oklch(52.8% 0.147 141.5);
Tailwind
colors: {
  custom: {
    50: '#72a565',
    500: '#2f7f25',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f25;
$custom-light: #72a565;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f25",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 37
  },
  "hsl": {
    "h": 113.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52792,
    "c": 0.14741,
    "h": 141.5
  },
  "luminance": 0.15917
}

Semantic roles & 50–950 ramp

primary
#2F7F25
secondary
#A64FB1
accent
#4ADECE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #2F7F25

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

Preview Lab → · Contrast checker → · Palette generator →

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