#2A7F18#2A7F18

#2A7F18 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.158 H 140.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2A7F18
RGBrgb(42, 127, 24)
HSLhsl(110, 68%, 30%)
HSVhsv(110, 81%, 50%)
CMYKcmyk(66.9%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.63, -44.53, 44.74)
CIE-LCHlch(46.63, 63.12, 134.87°)
OKLaboklab(52.52% -0.1219 0.0997)
OKLCHoklch(52.52% 0.158 140.7)
XYZxyz(8.7087, 15.7361, 3.4424)
Luminance0.1574 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F18 #6D187F
analogous
#5D7F18 #2A7F18 #187F3A
triadic
#2A7F18 #182A7F #7F182A
tetradic
#2A7F18 #185D7F #6D187F #7F3A18
square
#2A7F18 #185D7F #6D187F #7F3A18
split-complementary
#2A7F18 #3A187F #7F185D
monochromatic
#091A05 #194C0E #2A7F18 #3BB222 #54D938

Accessibility & contrast

On white

5.06
#2A7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2A7F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F18
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F18#FFFFFF#000000##FFFFFF
##2A7F181.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#1B7B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7f18;
/* rgb */ color: rgb(42, 127, 24);
/* oklch */ color: oklch(52.5% 0.158 140.7);
Tailwind
colors: {
  custom: {
    50: '#70a55e',
    500: '#2a7f18',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f18;
$custom-light: #70a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f18",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 109.515,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52524,
    "c": 0.15752,
    "h": 140.7
  },
  "luminance": 0.15737
}

Semantic roles & 50–950 ramp

primary
#2A7F18
secondary
#9F3FB3
accent
#3DEBCD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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