#2A7D3F#2A7D3F

#2A7D3F is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.4% C 0.124 H 148.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2A7D3F
RGBrgb(42, 125, 63)
HSLhsl(135, 50%, 33%)
HSVhsv(135, 66%, 49%)
CMYKcmyk(66.4%, 0%, 49.6%, 51%)
CIE-LABlab(46.33, -39.24, 26.55)
CIE-LCHlch(46.33, 47.38, 145.92°)
OKLaboklab(52.41% -0.1059 0.0647)
OKLCHoklch(52.41% 0.124 148.6)
XYZxyz(9.1850, 15.5174, 7.2128)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D3F #7D2A68
analogous
#3E7D2A #2A7D3F #2A7D69
triadic
#2A7D3F #3F2A7D #7D3F2A
tetradic
#2A7D3F #2A3E7D #7D2A68 #7D692A
square
#2A7D3F #2A3E7D #7D2A68 #7D692A
split-complementary
#2A7D3F #692A7D #7D2A3E
monochromatic
#0B2111 #1B4F28 #2A7D3F #39AB56 #5AC876

Accessibility & contrast

On white

5.12
#2A7D3F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A7D3F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D3F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D3F#FFFFFF#000000##FFFFFF
##2A7D3F1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723A
Deuteranopia (green-blind)
#746B43
Tritanopia (blue-blind)
#0E7B6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7d3f;
/* rgb */ color: rgb(42, 125, 63);
/* oklch */ color: oklch(52.4% 0.124 148.6);
Tailwind
colors: {
  custom: {
    50: '#6ea375',
    500: '#2a7d3f',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d3f;
$custom-light: #6ea375;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d3f",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 63
  },
  "hsl": {
    "h": 135.181,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5241,
    "c": 0.12409,
    "h": 148.6
  },
  "luminance": 0.15518
}

Semantic roles & 50–950 ramp

primary
#2A7D3F
secondary
#AD5697
accent
#4FB6D9
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2A7D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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