#2C7B18#2C7B18

#2C7B18 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.152 H 140.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2C7B18
RGBrgb(44, 123, 24)
HSLhsl(108, 67%, 29%)
HSVhsv(108, 80%, 48%)
CMYKcmyk(64.2%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.31, -42.58, 43.50)
CIE-LCHlch(45.31, 60.87, 134.39°)
OKLaboklab(51.45% -0.1168 0.0971)
OKLCHoklch(51.45% 0.152 140.2)
XYZxyz(8.2861, 14.7666, 3.2775)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7B18 #67187B
analogous
#5E7B18 #2C7B18 #187B36
triadic
#2C7B18 #182C7B #7B182C
tetradic
#2C7B18 #185E7B #67187B #7B3618
square
#2C7B18 #185E7B #67187B #7B3618
split-complementary
#2C7B18 #36187B #7B185E
monochromatic
#091A05 #1A480E #2C7B18 #3EAE22 #56D836

Accessibility & contrast

On white

5.31
#2C7B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2C7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7B18
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7B18#FFFFFF#000000##FFFFFF
##2C7B181.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#207768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2c7b18;
/* rgb */ color: rgb(44, 123, 24);
/* oklch */ color: oklch(51.5% 0.152 140.2);
Tailwind
colors: {
  custom: {
    50: '#70a25d',
    500: '#2c7b18',
    950: '#000000',
  },
}
SCSS
$custom: #2c7b18;
$custom-light: #70a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7b18",
  "rgb": {
    "r": 44,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 107.879,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51453,
    "c": 0.15189,
    "h": 140.2
  },
  "luminance": 0.14767
}

Semantic roles & 50–950 ramp

primary
#2C7B18
secondary
#993FB0
accent
#3EEAC7
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2C7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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