#2F7F23#2F7F23

#2F7F23 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.149 H 141.2°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2F7F23
RGBrgb(47, 127, 35)
HSLhsl(112, 57%, 32%)
HSVhsv(112, 72%, 50%)
CMYKcmyk(63%, 0%, 72.4%, 50.2%)
CIE-LABlab(46.85, -42.45, 40.88)
CIE-LCHlch(46.85, 58.94, 136.08°)
OKLaboklab(52.77% -0.116 0.0932)
OKLCHoklch(52.77% 0.149 141.2)
XYZxyz(9.0646, 15.9036, 4.1818)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F23 #73237F
analogous
#5D7F23 #2F7F23 #237F45
triadic
#2F7F23 #232F7F #7F232F
tetradic
#2F7F23 #235D7F #73237F #7F4523
square
#2F7F23 #235D7F #73237F #7F4523
split-complementary
#2F7F23 #45237F #7F235D
monochromatic
#0B1F09 #1D4F16 #2F7F23 #41AF30 #5FCE4E

Accessibility & contrast

On white

5.02
#2F7F23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2F7F23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F23
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F23#FFFFFF#000000##FFFFFF
##2F7F231.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827315
Deuteranopia (green-blind)
#786D2C
Tritanopia (blue-blind)
#227B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f23;
/* rgb */ color: rgb(47, 127, 35);
/* oklch */ color: oklch(52.8% 0.149 141.2);
Tailwind
colors: {
  custom: {
    50: '#72a563',
    500: '#2f7f23',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f23;
$custom-light: #72a563;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f23",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 112.174,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52773,
    "c": 0.14882,
    "h": 141.2
  },
  "luminance": 0.15904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7F23

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

Preview Lab → · Contrast checker → · Palette generator →

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