#2A7918#2A7918

#2A7918 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.150 H 140.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#2A7918
RGBrgb(42, 121, 24)
HSLhsl(109, 67%, 28%)
HSVhsv(109, 80%, 47%)
CMYKcmyk(65.3%, 0%, 80.2%, 52.5%)
CIE-LABlab(44.56, -42.33, 42.75)
CIE-LCHlch(44.56, 60.16, 134.71°)
OKLaboklab(50.82% -0.116 0.0956)
OKLCHoklch(50.82% 0.15 140.5)
XYZxyz(7.9567, 14.2322, 3.1917)
Luminance0.1423 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7918 #671879
analogous
#5A7918 #2A7918 #187936
triadic
#2A7918 #182A79 #79182A
tetradic
#2A7918 #185A79 #671879 #793618
square
#2A7918 #185A79 #671879 #793618
split-complementary
#2A7918 #361879 #79185A
monochromatic
#091A05 #18460E #2A7918 #3CAC22 #53D735

Accessibility & contrast

On white

5.46
#2A7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#2A7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7918
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7918#FFFFFF#000000##FFFFFF
##2A79181.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#1E7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7918;
/* rgb */ color: rgb(42, 121, 24);
/* oklch */ color: oklch(50.8% 0.150 140.5);
Tailwind
colors: {
  custom: {
    50: '#6fa05d',
    500: '#2a7918',
    950: '#000000',
  },
}
SCSS
$custom: #2a7918;
$custom-light: #6fa05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7918",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 108.866,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50817,
    "c": 0.1503,
    "h": 140.5
  },
  "luminance": 0.14233
}

Semantic roles & 50–950 ramp

primary
#2A7918
secondary
#993FAE
accent
#3EEACA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A7918

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

Preview Lab → · Contrast checker → · Palette generator →

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