#2A7D15#2A7D15

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

Color values

HEX#2A7D15
RGBrgb(42, 125, 21)
HSLhsl(108, 71%, 29%)
HSVhsv(108, 83%, 49%)
CMYKcmyk(66.4%, 0%, 83.2%, 51%)
CIE-LABlab(45.92, -43.99, 45.03)
CIE-LCHlch(45.92, 62.96, 134.33°)
OKLaboklab(51.94% -0.1206 0.0999)
OKLCHoklch(51.94% 0.157 140.4)
XYZxyz(8.4234, 15.2128, 3.2018)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D15 #68157D
analogous
#5E7D15 #2A7D15 #157D34
triadic
#2A7D15 #152A7D #7D152A
tetradic
#2A7D15 #155E7D #68157D #7D3415
square
#2A7D15 #155E7D #68157D #7D3415
split-complementary
#2A7D15 #34157D #7D155E
monochromatic
#091A04 #18490C #2A7D15 #3CB11E #53DC30

Accessibility & contrast

On white

5.19
#2A7D15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2A7D15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D15
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D15#FFFFFF#000000##FFFFFF
##2A7D151.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A22
Tritanopia (blue-blind)
#1D796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d15;
/* rgb */ color: rgb(42, 125, 21);
/* oklch */ color: oklch(51.9% 0.157 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a35c',
    500: '#2a7d15',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d15;
$custom-light: #70a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d15",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 107.885,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51938,
    "c": 0.15663,
    "h": 140.4
  },
  "luminance": 0.15214
}

Semantic roles & 50–950 ramp

primary
#2A7D15
secondary
#9A3CB2
accent
#3AEECA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7D15

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

Preview Lab → · Contrast checker → · Palette generator →

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