#2A7F19#2A7F19

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

Color values

HEX#2A7F19
RGBrgb(42, 127, 25)
HSLhsl(110, 67%, 30%)
HSVhsv(110, 80%, 50%)
CMYKcmyk(66.9%, 0%, 80.3%, 50.2%)
CIE-LABlab(46.63, -44.46, 44.41)
CIE-LCHlch(46.63, 62.84, 135.04°)
OKLaboklab(52.53% -0.1217 0.0992)
OKLCHoklch(52.53% 0.157 140.8)
XYZxyz(8.7192, 15.7403, 3.4982)
Luminance0.1574 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F19 #6E197F
analogous
#5D7F19 #2A7F19 #197F3B
triadic
#2A7F19 #192A7F #7F192A
tetradic
#2A7F19 #195D7F #6E197F #7F3B19
square
#2A7F19 #195D7F #6E197F #7F3B19
split-complementary
#2A7F19 #3B197F #7F195D
monochromatic
#081A05 #194C0F #2A7F19 #3BB223 #55D83A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7F19#FFFFFF#000000##FFFFFF
##2A7F191.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)
#786C25
Tritanopia (blue-blind)
#1B7B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7f19;
/* rgb */ color: rgb(42, 127, 25);
/* oklch */ color: oklch(52.5% 0.157 140.8);
Tailwind
colors: {
  custom: {
    50: '#70a55e',
    500: '#2a7f19',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f19;
$custom-light: #70a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f19",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 25
  },
  "hsl": {
    "h": 110,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52531,
    "c": 0.15699,
    "h": 140.8
  },
  "luminance": 0.15741
}

Semantic roles & 50–950 ramp

primary
#2A7F19
secondary
#A041B3
accent
#3EEACD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7F19

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

Preview Lab → · Contrast checker → · Palette generator →

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