#2F7B2D#2F7B2D

#2F7B2D is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.136 H 142.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2F7B2D
RGBrgb(47, 123, 45)
HSLhsl(118, 46%, 33%)
HSVhsv(118, 63%, 48%)
CMYKcmyk(61.8%, 0%, 63.4%, 51.8%)
CIE-LABlab(45.58, -39.84, 34.98)
CIE-LCHlch(45.58, 53.02, 138.71°)
OKLaboklab(51.75% -0.1083 0.0819)
OKLCHoklch(51.75% 0.136 142.9)
XYZxyz(8.7284, 14.9589, 4.9095)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B2D #792D7B
analogous
#567B2D #2F7B2D #2D7B52
triadic
#2F7B2D #2D2F7B #7B2D2F
tetradic
#2F7B2D #2D567B #792D7B #7B522D
square
#2F7B2D #2D567B #792D7B #7B522D
split-complementary
#2F7B2D #522D7B #7B2D56
monochromatic
#0D210C #1E4E1D #2F7B2D #40A83D #61C45E

Accessibility & contrast

On white

5.26
#2F7B2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2F7B2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B2D
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B2D#FFFFFF#000000##FFFFFF
##2F7B2D1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7024
Deuteranopia (green-blind)
#746933
Tritanopia (blue-blind)
#22776A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b2d;
/* rgb */ color: rgb(47, 123, 45);
/* oklch */ color: oklch(51.8% 0.136 142.9);
Tailwind
colors: {
  custom: {
    50: '#71a269',
    500: '#2f7b2d',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b2d;
$custom-light: #71a269;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b2d",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 118.462,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51754,
    "c": 0.13583,
    "h": 142.9
  },
  "luminance": 0.1496
}

Semantic roles & 50–950 ramp

primary
#2F7B2D
secondary
#A859AB
accent
#52D6D3
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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