#2F7017#2F7017

#2F7017 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.4% C 0.137 H 138.9°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#2F7017
RGBrgb(47, 112, 23)
HSLhsl(104, 66%, 26%)
HSVhsv(104, 79%, 44%)
CMYKcmyk(58%, 0%, 79.5%, 56.1%)
CIE-LABlab(41.62, -37.57, 40.30)
CIE-LCHlch(41.62, 55.10, 132.99°)
OKLaboklab(48.43% -0.1036 0.0903)
OKLCHoklch(48.43% 0.137 138.9)
XYZxyz(7.1208, 12.2540, 2.8005)
Luminance0.1226 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7017 #581770
analogous
#5C7017 #2F7017 #17702C
triadic
#2F7017 #172F70 #70172F
tetradic
#2F7017 #175C70 #581770 #702C17
square
#2F7017 #175C70 #581770 #702C17
split-complementary
#2F7017 #2C1770 #70175C
monochromatic
#0B1905 #1A3D0D #2F7017 #44A321 #5AD42D

Accessibility & contrast

On white

6.09
#2F7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2F7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7017
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7017#FFFFFF#000000##FFFFFF
##2F70171.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746604
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#296C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f7017;
/* rgb */ color: rgb(47, 112, 23);
/* oklch */ color: oklch(48.4% 0.137 138.9);
Tailwind
colors: {
  custom: {
    50: '#709a5b',
    500: '#2f7017',
    950: '#000000',
  },
}
SCSS
$custom: #2f7017;
$custom-light: #709a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7017",
  "rgb": {
    "r": 47,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 103.82,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48426,
    "c": 0.13739,
    "h": 138.9
  },
  "luminance": 0.12255
}

Semantic roles & 50–950 ramp

primary
#2F7017
secondary
#8A3DA6
accent
#3FE9BB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7017

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

Preview Lab → · Contrast checker → · Palette generator →

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