#2F7A23#2F7A23

#2F7A23 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.142 H 141.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2F7A23
RGBrgb(47, 122, 35)
HSLhsl(112, 55%, 31%)
HSVhsv(112, 71%, 48%)
CMYKcmyk(61.5%, 0%, 71.3%, 52.2%)
CIE-LABlab(45.14, -40.52, 39.09)
CIE-LCHlch(45.14, 56.30, 136.03°)
OKLaboklab(51.36% -0.1108 0.0895)
OKLCHoklch(51.36% 0.142 141.1)
XYZxyz(8.4348, 14.6440, 3.9719)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A23 #6E237A
analogous
#5A7A23 #2F7A23 #237A42
triadic
#2F7A23 #232F7A #7A232F
tetradic
#2F7A23 #235A7A #6E237A #7A4223
square
#2F7A23 #235A7A #6E237A #7A4223
split-complementary
#2F7A23 #42237A #7A235A
monochromatic
#0A1B08 #1D4A15 #2F7A23 #41AA31 #5DCC4C

Accessibility & contrast

On white

5.34
#2F7A23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2F7A23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A23
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A23#FFFFFF#000000##FFFFFF
##2F7A231.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F16
Deuteranopia (green-blind)
#74682B
Tritanopia (blue-blind)
#247668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a23;
/* rgb */ color: rgb(47, 122, 35);
/* oklch */ color: oklch(51.4% 0.142 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a163',
    500: '#2f7a23',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a23;
$custom-light: #71a163;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a23",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 35
  },
  "hsl": {
    "h": 111.724,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51364,
    "c": 0.14239,
    "h": 141.1
  },
  "luminance": 0.14645
}

Semantic roles & 50–950 ramp

primary
#2F7A23
secondary
#9F4CAD
accent
#49DFCA
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2F7A23

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

Preview Lab → · Contrast checker → · Palette generator →

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