#2F7B26#2F7B26

#2F7B26 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.141 H 141.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2F7B26
RGBrgb(47, 123, 38)
HSLhsl(114, 53%, 32%)
HSVhsv(114, 69%, 48%)
CMYKcmyk(61.8%, 0%, 69.1%, 51.8%)
CIE-LABlab(45.51, -40.62, 38.17)
CIE-LCHlch(45.51, 55.74, 136.78°)
OKLaboklab(51.68% -0.1108 0.0879)
OKLCHoklch(51.68% 0.141 141.6)
XYZxyz(8.6047, 14.9094, 4.2577)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B26 #72267B
analogous
#5A7B26 #2F7B26 #267B48
triadic
#2F7B26 #262F7B #7B262F
tetradic
#2F7B26 #265A7B #72267B #7B4826
square
#2F7B26 #265A7B #72267B #7B4826
split-complementary
#2F7B26 #48267B #7B265A
monochromatic
#0B1D09 #1D4C18 #2F7B26 #41AA34 #5FCA52

Accessibility & contrast

On white

5.27
#2F7B26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2F7B26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B26
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B26#FFFFFF#000000##FFFFFF
##2F7B261.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701B
Deuteranopia (green-blind)
#75692E
Tritanopia (blue-blind)
#23776A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b26;
/* rgb */ color: rgb(47, 123, 38);
/* oklch */ color: oklch(51.7% 0.141 141.6);
Tailwind
colors: {
  custom: {
    50: '#71a265',
    500: '#2f7b26',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b26;
$custom-light: #71a265;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b26",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 38
  },
  "hsl": {
    "h": 113.647,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.51676,
    "c": 0.14148,
    "h": 141.6
  },
  "luminance": 0.1491
}

Semantic roles & 50–950 ramp

primary
#2F7B26
secondary
#A350AD
accent
#4CDCCD
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2F7B26

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

Preview Lab → · Contrast checker → · Palette generator →

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