#2A7D24#2A7D24

#2A7D24 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.148 H 142.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A7D24
RGBrgb(42, 125, 36)
HSLhsl(116, 55%, 32%)
HSVhsv(116, 71%, 49%)
CMYKcmyk(66.4%, 0%, 71.2%, 51%)
CIE-LABlab(46.02, -42.82, 39.55)
CIE-LCHlch(46.02, 58.29, 137.28°)
OKLaboklab(52.05% -0.1166 0.0906)
OKLCHoklch(52.05% 0.148 142.2)
XYZxyz(8.6064, 15.2860, 4.1657)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D24 #77247D
analogous
#577D24 #2A7D24 #247D4B
triadic
#2A7D24 #242A7D #7D242A
tetradic
#2A7D24 #24577D #77247D #7D4B24
square
#2A7D24 #24577D #77247D #7D4B24
split-complementary
#2A7D24 #4B247D #7D2457
monochromatic
#0A1E09 #1A4D16 #2A7D24 #3AAD32 #58CC4F

Accessibility & contrast

On white

5.18
#2A7D24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2A7D24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D24
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D24#FFFFFF#000000##FFFFFF
##2A7D241.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807117
Deuteranopia (green-blind)
#766A2C
Tritanopia (blue-blind)
#1A796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d24;
/* rgb */ color: rgb(42, 125, 36);
/* oklch */ color: oklch(52.1% 0.148 142.2);
Tailwind
colors: {
  custom: {
    50: '#6fa364',
    500: '#2a7d24',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d24;
$custom-light: #6fa364;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d24",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 36
  },
  "hsl": {
    "h": 115.955,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52052,
    "c": 0.14767,
    "h": 142.2
  },
  "luminance": 0.15287
}

Semantic roles & 50–950 ramp

primary
#2A7D24
secondary
#A94DAF
accent
#49DFD5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7D24

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

Preview Lab → · Contrast checker → · Palette generator →

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