#2F7217#2F7217

#2F7217 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.140 H 139.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2F7217
RGBrgb(47, 114, 23)
HSLhsl(104, 66%, 27%)
HSVhsv(104, 80%, 45%)
CMYKcmyk(58.8%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.31, -38.37, 40.98)
CIE-LCHlch(42.31, 56.13, 133.12°)
OKLaboklab(49% -0.1057 0.0917)
OKLCHoklch(49% 0.14 139.1)
XYZxyz(7.3440, 12.7002, 2.8748)
Luminance0.1270 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7217 #5A1772
analogous
#5D7217 #2F7217 #17722D
triadic
#2F7217 #172F72 #72172F
tetradic
#2F7217 #175D72 #5A1772 #722D17
square
#2F7217 #175D72 #5A1772 #722D17
split-complementary
#2F7217 #2D1772 #72175D
monochromatic
#0A1905 #1A3F0D #2F7217 #44A521 #5AD52E

Accessibility & contrast

On white

5.93
#2F7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2F7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7217
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7217#FFFFFF#000000##FFFFFF
##2F72171.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766703
Deuteranopia (green-blind)
#6D6221
Tritanopia (blue-blind)
#286E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7217;
/* rgb */ color: rgb(47, 114, 23);
/* oklch */ color: oklch(49.0% 0.140 139.1);
Tailwind
colors: {
  custom: {
    50: '#709b5c',
    500: '#2f7217',
    950: '#000000',
  },
}
SCSS
$custom: #2f7217;
$custom-light: #709b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7217",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 104.176,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48996,
    "c": 0.13993,
    "h": 139.1
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#2F7217
secondary
#8C3DA8
accent
#3EE9BC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7217

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

Preview Lab → · Contrast checker → · Palette generator →

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