#2A7D25#2A7D25

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

Color values

HEX#2A7D25
RGBrgb(42, 125, 37)
HSLhsl(117, 54%, 32%)
HSVhsv(117, 70%, 49%)
CMYKcmyk(66.4%, 0%, 70.4%, 51%)
CIE-LABlab(46.03, -42.72, 39.12)
CIE-LCHlch(46.03, 57.93, 137.52°)
OKLaboklab(52.06% -0.1163 0.0898)
OKLCHoklch(52.06% 0.147 142.3)
XYZxyz(8.6219, 15.2922, 4.2472)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D25 #78257D
analogous
#567D25 #2A7D25 #257D4C
triadic
#2A7D25 #252A7D #7D252A
tetradic
#2A7D25 #25567D #78257D #7D4C25
square
#2A7D25 #25567D #78257D #7D4C25
split-complementary
#2A7D25 #4C257D #7D2556
monochromatic
#0A1F09 #1A4E17 #2A7D25 #3AAC33 #58CB51

Accessibility & contrast

On white

5.17
#2A7D25 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7D25
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D25#FFFFFF#000000##FFFFFF
##2A7D251.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807119
Deuteranopia (green-blind)
#766A2D
Tritanopia (blue-blind)
#19796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d25;
/* rgb */ color: rgb(42, 125, 37);
/* oklch */ color: oklch(52.1% 0.147 142.3);
Tailwind
colors: {
  custom: {
    50: '#6fa364',
    500: '#2a7d25',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d25;
$custom-light: #6fa364;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d25",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 37
  },
  "hsl": {
    "h": 116.591,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52061,
    "c": 0.14694,
    "h": 142.3
  },
  "luminance": 0.15293
}

Semantic roles & 50–950 ramp

primary
#2A7D25
secondary
#AA4FAF
accent
#4ADED5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7D25

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

Preview Lab → · Contrast checker → · Palette generator →

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