#2F7215#2F7215

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

Color values

HEX#2F7215
RGBrgb(47, 114, 21)
HSLhsl(103, 69%, 26%)
HSVhsv(103, 82%, 45%)
CMYKcmyk(58.8%, 0%, 81.6%, 55.3%)
CIE-LABlab(42.30, -38.50, 41.67)
CIE-LCHlch(42.30, 56.73, 132.74°)
OKLaboklab(48.98% -0.1062 0.0928)
OKLCHoklch(48.98% 0.141 138.8)
XYZxyz(7.3247, 12.6925, 2.7732)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7215 #581572
analogous
#5E7215 #2F7215 #15722A
triadic
#2F7215 #152F72 #72152F
tetradic
#2F7215 #155E72 #581572 #722A15
square
#2F7215 #155E72 #581572 #722A15
split-complementary
#2F7215 #2A1572 #72155E
monochromatic
#0B1A05 #1A3E0B #2F7215 #44A61F #5AD82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7215#FFFFFF#000000##FFFFFF
##2F72151.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)
#766700
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#286E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f7215;
/* rgb */ color: rgb(47, 114, 21);
/* oklch */ color: oklch(49.0% 0.141 138.8);
Tailwind
colors: {
  custom: {
    50: '#709b5b',
    500: '#2f7215',
    950: '#000000',
  },
}
SCSS
$custom: #2f7215;
$custom-light: #709b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7215",
  "rgb": {
    "r": 47,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 103.226,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48983,
    "c": 0.14104,
    "h": 138.8
  },
  "luminance": 0.12693
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7215

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

Preview Lab → · Contrast checker → · Palette generator →

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