#2F7C17#2F7C17

#2F7C17 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.152 H 139.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F7C17
RGBrgb(47, 124, 23)
HSLhsl(106, 69%, 29%)
HSVhsv(106, 81%, 49%)
CMYKcmyk(62.1%, 0%, 81.5%, 51.4%)
CIE-LABlab(45.74, -42.24, 44.28)
CIE-LCHlch(45.74, 61.20, 133.65°)
OKLaboklab(51.84% -0.1161 0.0986)
OKLCHoklch(51.84% 0.152 139.7)
XYZxyz(8.5342, 15.0807, 3.2716)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C17 #64177C
analogous
#627C17 #2F7C17 #177C32
triadic
#2F7C17 #172F7C #7C172F
tetradic
#2F7C17 #17627C #64177C #7C3217
square
#2F7C17 #17627C #64177C #7C3217
split-complementary
#2F7C17 #32177C #7C1762
monochromatic
#0A1A05 #1B480D #2F7C17 #43B021 #5BD934

Accessibility & contrast

On white

5.23
#2F7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F7C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C17
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C17#FFFFFF#000000##FFFFFF
##2F7C171.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#257869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c17;
/* rgb */ color: rgb(47, 124, 23);
/* oklch */ color: oklch(51.8% 0.152 139.7);
Tailwind
colors: {
  custom: {
    50: '#72a35d',
    500: '#2f7c17',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c17;
$custom-light: #72a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c17",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 105.743,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51836,
    "c": 0.15234,
    "h": 139.7
  },
  "luminance": 0.15082
}

Semantic roles & 50–950 ramp

primary
#2F7C17
secondary
#963EB1
accent
#3CECC2
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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