#2E7215#2E7215

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

Color values

HEX#2E7215
RGBrgb(46, 114, 21)
HSLhsl(104, 69%, 26%)
HSVhsv(104, 82%, 45%)
CMYKcmyk(59.6%, 0%, 81.6%, 55.3%)
CIE-LABlab(42.26, -38.79, 41.62)
CIE-LCHlch(42.26, 56.89, 132.98°)
OKLaboklab(48.94% -0.1069 0.0927)
OKLCHoklch(48.94% 0.142 139.1)
XYZxyz(7.2791, 12.6690, 2.7711)
Luminance0.1267 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7215 #591572
analogous
#5D7215 #2E7215 #15722B
triadic
#2E7215 #152E72 #72152E
tetradic
#2E7215 #155D72 #591572 #722B15
square
#2E7215 #155D72 #591572 #722B15
split-complementary
#2E7215 #2B1572 #72155D
monochromatic
#0A1A05 #193E0B #2E7215 #43A61F #58D82A

Accessibility & contrast

On white

5.94
#2E7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2E7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7215
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7215#FFFFFF#000000##FFFFFF
##2E72151.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#276E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2e7215;
/* rgb */ color: rgb(46, 114, 21);
/* oklch */ color: oklch(48.9% 0.142 139.1);
Tailwind
colors: {
  custom: {
    50: '#709b5b',
    500: '#2e7215',
    950: '#000000',
  },
}
SCSS
$custom: #2e7215;
$custom-light: #709b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7215",
  "rgb": {
    "r": 46,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 103.871,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48943,
    "c": 0.14151,
    "h": 139.1
  },
  "luminance": 0.1267
}

Semantic roles & 50–950 ramp

primary
#2E7215
secondary
#8B3BA8
accent
#3CECBD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2E7215

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

Preview Lab → · Contrast checker → · Palette generator →

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