#2E7C18#2E7C18

#2E7C18 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.152 H 140.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2E7C18
RGBrgb(46, 124, 24)
HSLhsl(107, 68%, 29%)
HSVhsv(107, 81%, 49%)
CMYKcmyk(62.9%, 0%, 80.6%, 51.4%)
CIE-LABlab(45.72, -42.44, 43.91)
CIE-LCHlch(45.72, 61.07, 134.03°)
OKLaboklab(51.81% -0.1165 0.098)
OKLCHoklch(51.81% 0.152 140)
XYZxyz(8.4989, 15.0613, 3.3232)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7C18 #66187C
analogous
#607C18 #2E7C18 #187C34
triadic
#2E7C18 #182E7C #7C182E
tetradic
#2E7C18 #18607C #66187C #7C3418
square
#2E7C18 #18607C #66187C #7C3418
split-complementary
#2E7C18 #34187C #7C1860
monochromatic
#0A1A05 #1B490E #2E7C18 #41AF22 #5AD836

Accessibility & contrast

On white

5.23
#2E7C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2E7C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7C18
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7C18#FFFFFF#000000##FFFFFF
##2E7C181.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#237869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7c18;
/* rgb */ color: rgb(46, 124, 24);
/* oklch */ color: oklch(51.8% 0.152 140.0);
Tailwind
colors: {
  custom: {
    50: '#71a35e',
    500: '#2e7c18',
    950: '#000000',
  },
}
SCSS
$custom: #2e7c18;
$custom-light: #71a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7c18",
  "rgb": {
    "r": 46,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 106.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.15226,
    "h": 140
  },
  "luminance": 0.15062
}

Semantic roles & 50–950 ramp

primary
#2E7C18
secondary
#983FB1
accent
#3DEAC4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2E7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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