#2F7B23#2F7B23

#2F7B23 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.144 H 141.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2F7B23
RGBrgb(47, 123, 35)
HSLhsl(112, 56%, 31%)
HSVhsv(112, 72%, 48%)
CMYKcmyk(61.8%, 0%, 71.5%, 51.8%)
CIE-LABlab(45.48, -40.91, 39.45)
CIE-LCHlch(45.48, 56.83, 136.04°)
OKLaboklab(51.65% -0.1118 0.0902)
OKLCHoklch(51.65% 0.144 141.1)
XYZxyz(8.5582, 14.8908, 4.0130)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B23 #6F237B
analogous
#5B7B23 #2F7B23 #237B43
triadic
#2F7B23 #232F7B #7B232F
tetradic
#2F7B23 #235B7B #6F237B #7B4323
square
#2F7B23 #235B7B #6F237B #7B4323
split-complementary
#2F7B23 #43237B #7B235B
monochromatic
#0B1C08 #1D4B15 #2F7B23 #41AB31 #5ECC4C

Accessibility & contrast

On white

5.28
#2F7B23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2F7B23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B23
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B23#FFFFFF#000000##FFFFFF
##2F7B231.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7016
Deuteranopia (green-blind)
#75692B
Tritanopia (blue-blind)
#247769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b23;
/* rgb */ color: rgb(47, 123, 35);
/* oklch */ color: oklch(51.6% 0.144 141.1);
Tailwind
colors: {
  custom: {
    50: '#71a263',
    500: '#2f7b23',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b23;
$custom-light: #71a263;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b23",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 35
  },
  "hsl": {
    "h": 111.818,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51647,
    "c": 0.14369,
    "h": 141.1
  },
  "luminance": 0.14892
}

Semantic roles & 50–950 ramp

primary
#2F7B23
secondary
#A04CAE
accent
#49DFCB
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2F7B23

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

Preview Lab → · Contrast checker → · Palette generator →

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