#2F8227#2F8227

#2F8227 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.7% C 0.150 H 141.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#2F8227
RGBrgb(47, 130, 39)
HSLhsl(115, 54%, 33%)
HSVhsv(115, 70%, 51%)
CMYKcmyk(63.8%, 0%, 70%, 49%)
CIE-LABlab(47.90, -43.22, 40.29)
CIE-LCHlch(47.90, 59.09, 137.01°)
OKLaboklab(53.65% -0.1178 0.0925)
OKLCHoklch(53.65% 0.15 141.9)
XYZxyz(9.5206, 16.7152, 4.6437)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8227 #7A2782
analogous
#5C8227 #2F8227 #27824C
triadic
#2F8227 #272F82 #82272F
tetradic
#2F8227 #275C82 #7A2782 #824C27
square
#2F8227 #275C82 #7A2782 #824C27
split-complementary
#2F8227 #4C2782 #82275C
monochromatic
#0D240B #1E5319 #2F8227 #40B135 #61CD57

Accessibility & contrast

On white

4.84
#2F8227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#2F8227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8227
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8227#FFFFFF#000000##FFFFFF
##2F82271.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761A
Deuteranopia (green-blind)
#7B6F2F
Tritanopia (blue-blind)
#217E70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f8227;
/* rgb */ color: rgb(47, 130, 39);
/* oklch */ color: oklch(53.7% 0.150 141.9);
Tailwind
colors: {
  custom: {
    50: '#72a766',
    500: '#2f8227',
    950: '#000000',
  },
}
SCSS
$custom: #2f8227;
$custom-light: #72a766;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8227",
  "rgb": {
    "r": 47,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 114.725,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53653,
    "c": 0.14981,
    "h": 141.9
  },
  "luminance": 0.16716
}

Semantic roles & 50–950 ramp

primary
#2F8227
secondary
#A953B1
accent
#4BDDD0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #2F8227

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

Preview Lab → · Contrast checker → · Palette generator →

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