#2F7315#2F7315

#2F7315 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.3% C 0.142 H 138.9°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2F7315
RGBrgb(47, 115, 21)
HSLhsl(103, 69%, 27%)
HSVhsv(103, 82%, 45%)
CMYKcmyk(59.1%, 0%, 81.7%, 54.9%)
CIE-LABlab(42.64, -38.90, 42.00)
CIE-LCHlch(42.64, 57.24, 132.81°)
OKLaboklab(49.27% -0.1073 0.0935)
OKLCHoklch(49.27% 0.142 138.9)
XYZxyz(7.4381, 12.9193, 2.8110)
Luminance0.1292 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7315 #591573
analogous
#5E7315 #2F7315 #15732A
triadic
#2F7315 #152F73 #73152F
tetradic
#2F7315 #155E73 #591573 #732A15
square
#2F7315 #155E73 #591573 #732A15
split-complementary
#2F7315 #2A1573 #73155E
monochromatic
#0B1A05 #1A3F0C #2F7315 #44A71E #5AD82A

Accessibility & contrast

On white

5.86
#2F7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2F7315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7315
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7315#FFFFFF#000000##FFFFFF
##2F73151.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E6320
Tritanopia (blue-blind)
#286F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f7315;
/* rgb */ color: rgb(47, 115, 21);
/* oklch */ color: oklch(49.3% 0.142 138.9);
Tailwind
colors: {
  custom: {
    50: '#709c5b',
    500: '#2f7315',
    950: '#000000',
  },
}
SCSS
$custom: #2f7315;
$custom-light: #709c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7315",
  "rgb": {
    "r": 47,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 103.404,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49268,
    "c": 0.14229,
    "h": 138.9
  },
  "luminance": 0.1292
}

Semantic roles & 50–950 ramp

primary
#2F7315
secondary
#8B3BA9
accent
#3CECBB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7315

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

Preview Lab → · Contrast checker → · Palette generator →

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