#2F7815#2F7815

#2F7815 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.148 H 139.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2F7815
RGBrgb(47, 120, 21)
HSLhsl(104, 70%, 28%)
HSVhsv(104, 83%, 47%)
CMYKcmyk(60.8%, 0%, 82.5%, 52.9%)
CIE-LABlab(44.36, -40.84, 43.62)
CIE-LCHlch(44.36, 59.76, 133.11°)
OKLaboklab(50.69% -0.1125 0.0969)
OKLCHoklch(50.69% 0.148 139.3)
XYZxyz(8.0238, 14.0907, 3.0063)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7815 #5E1578
analogous
#617815 #2F7815 #15782C
triadic
#2F7815 #152F78 #78152F
tetradic
#2F7815 #156178 #5E1578 #782C15
square
#2F7815 #156178 #5E1578 #782C15
split-complementary
#2F7815 #2C1578 #781561
monochromatic
#0A1A05 #1B440C #2F7815 #43AC1E #5BDA2D

Accessibility & contrast

On white

5.50
#2F7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2F7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7815
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7815#FFFFFF#000000##FFFFFF
##2F78151.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#277466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2f7815;
/* rgb */ color: rgb(47, 120, 21);
/* oklch */ color: oklch(50.7% 0.148 139.3);
Tailwind
colors: {
  custom: {
    50: '#71a05c',
    500: '#2f7815',
    950: '#000000',
  },
}
SCSS
$custom: #2f7815;
$custom-light: #71a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7815",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 104.242,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.5069,
    "c": 0.14848,
    "h": 139.3
  },
  "luminance": 0.14091
}

Semantic roles & 50–950 ramp

primary
#2F7815
secondary
#903BAE
accent
#3BEDBE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2F7815

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

Preview Lab → · Contrast checker → · Palette generator →

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