#2E7217#2E7217

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

Color values

HEX#2E7217
RGBrgb(46, 114, 23)
HSLhsl(105, 66%, 27%)
HSVhsv(105, 80%, 45%)
CMYKcmyk(59.6%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.27, -38.65, 40.93)
CIE-LCHlch(42.27, 56.30, 133.36°)
OKLaboklab(48.96% -0.1064 0.0916)
OKLCHoklch(48.96% 0.14 139.3)
XYZxyz(7.2984, 12.6767, 2.8727)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7217 #5B1772
analogous
#5C7217 #2E7217 #17722E
triadic
#2E7217 #172E72 #72172E
tetradic
#2E7217 #175C72 #5B1772 #722E17
square
#2E7217 #175C72 #5B1772 #722E17
split-complementary
#2E7217 #2E1772 #72175C
monochromatic
#0A1905 #193F0D #2E7217 #43A521 #59D52E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E7217#FFFFFF#000000##FFFFFF
##2E72171.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e7217;
/* rgb */ color: rgb(46, 114, 23);
/* oklch */ color: oklch(49.0% 0.140 139.3);
Tailwind
colors: {
  custom: {
    50: '#6f9b5c',
    500: '#2e7217',
    950: '#000000',
  },
}
SCSS
$custom: #2e7217;
$custom-light: #6f9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7217",
  "rgb": {
    "r": 46,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 104.835,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48957,
    "c": 0.14041,
    "h": 139.3
  },
  "luminance": 0.12677
}

Semantic roles & 50–950 ramp

primary
#2E7217
secondary
#8D3DA8
accent
#3EE9BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2E7217

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

Preview Lab → · Contrast checker → · Palette generator →

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