#2F7E23#2F7E23

#2F7E23 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.148 H 141.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2F7E23
RGBrgb(47, 126, 35)
HSLhsl(112, 57%, 32%)
HSVhsv(112, 72%, 49%)
CMYKcmyk(62.7%, 0%, 72.2%, 50.6%)
CIE-LABlab(46.51, -42.07, 40.52)
CIE-LCHlch(46.51, 58.41, 136.07°)
OKLaboklab(52.49% -0.115 0.0925)
OKLCHoklch(52.49% 0.148 141.2)
XYZxyz(8.9361, 15.6466, 4.1390)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E23 #72237E
analogous
#5D7E23 #2F7E23 #237E45
triadic
#2F7E23 #232F7E #7E232F
tetradic
#2F7E23 #235D7E #72237E #7E4523
square
#2F7E23 #235D7E #72237E #7E4523
split-complementary
#2F7E23 #45237E #7E235D
monochromatic
#0B1E08 #1D4E16 #2F7E23 #41AE30 #5FCE4E

Accessibility & contrast

On white

5.09
#2F7E23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2F7E23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E23
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E23#FFFFFF#000000##FFFFFF
##2F7E231.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817215
Deuteranopia (green-blind)
#786C2C
Tritanopia (blue-blind)
#237A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e23;
/* rgb */ color: rgb(47, 126, 35);
/* oklch */ color: oklch(52.5% 0.148 141.2);
Tailwind
colors: {
  custom: {
    50: '#72a463',
    500: '#2f7e23',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e23;
$custom-light: #72a463;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e23",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 112.088,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52492,
    "c": 0.14754,
    "h": 141.2
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#2F7E23
secondary
#A34CB0
accent
#48E0CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #2F7E23

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

Preview Lab → · Contrast checker → · Palette generator →

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