#2F7226#2F7226

#2F7226 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.129 H 141.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2F7226
RGBrgb(47, 114, 38)
HSLhsl(113, 50%, 30%)
HSVhsv(113, 67%, 45%)
CMYKcmyk(58.8%, 0%, 66.7%, 55.3%)
CIE-LABlab(42.43, -37.01, 34.80)
CIE-LCHlch(42.43, 50.80, 136.77°)
OKLaboklab(49.13% -0.1011 0.0808)
OKLCHoklch(49.13% 0.129 141.4)
XYZxyz(7.5391, 12.7783, 3.9025)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7226 #692672
analogous
#557226 #2F7226 #267243
triadic
#2F7226 #262F72 #72262F
tetradic
#2F7226 #265572 #692672 #724326
square
#2F7226 #265572 #692672 #724326
split-complementary
#2F7226 #432672 #722655
monochromatic
#091708 #1C4417 #2F7226 #42A035 #5CC44E

Accessibility & contrast

On white

5.91
#2F7226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2F7226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7226
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7226#FFFFFF#000000##FFFFFF
##2F72261.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75681D
Deuteranopia (green-blind)
#6C622C
Tritanopia (blue-blind)
#266E62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7226;
/* rgb */ color: rgb(47, 114, 38);
/* oklch */ color: oklch(49.1% 0.129 141.4);
Tailwind
colors: {
  custom: {
    50: '#6f9b64',
    500: '#2f7226',
    950: '#000000',
  },
}
SCSS
$custom: #2f7226;
$custom-light: #6f9b64;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7226",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 38
  },
  "hsl": {
    "h": 112.895,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.49133,
    "c": 0.12939,
    "h": 141.4
  },
  "luminance": 0.12779
}

Semantic roles & 50–950 ramp

primary
#2F7226
secondary
#9A4FA5
accent
#4EDAC9
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E05
muted
#7B7E7A

Preview Lab

Preview with #2F7226

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

Preview Lab → · Contrast checker → · Palette generator →

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