#2A7F15#2A7F15

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

Color values

HEX#2A7F15
RGBrgb(42, 127, 21)
HSLhsl(108, 72%, 29%)
HSVhsv(108, 83%, 50%)
CMYKcmyk(66.9%, 0%, 83.5%, 50.2%)
CIE-LABlab(46.61, -44.72, 45.67)
CIE-LCHlch(46.61, 63.92, 134.39°)
OKLaboklab(52.51% -0.1226 0.1013)
OKLCHoklch(52.51% 0.159 140.4)
XYZxyz(8.6792, 15.7243, 3.2870)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F15 #6A157F
analogous
#5F7F15 #2A7F15 #157F35
triadic
#2A7F15 #152A7F #7F152A
tetradic
#2A7F15 #155F7F #6A157F #7F3515
square
#2A7F15 #155F7F #6A157F #7F3515
split-complementary
#2A7F15 #35157F #7F155F
monochromatic
#091A04 #194A0C #2A7F15 #3BB41E #53DD31

Accessibility & contrast

On white

5.07
#2A7F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2A7F15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F15
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F15#FFFFFF#000000##FFFFFF
##2A7F151.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#1C7B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7f15;
/* rgb */ color: rgb(42, 127, 21);
/* oklch */ color: oklch(52.5% 0.159 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a55d',
    500: '#2a7f15',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f15;
$custom-light: #70a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f15",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 108.113,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52506,
    "c": 0.15899,
    "h": 140.4
  },
  "luminance": 0.15725
}

Semantic roles & 50–950 ramp

primary
#2A7F15
secondary
#9C3CB4
accent
#39EECB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7F15

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

Preview Lab → · Contrast checker → · Palette generator →

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