#2A7D2A#2A7D2A

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

Color values

HEX#2A7D2A
RGBrgb(42, 125, 42)
HSLhsl(120, 50%, 33%)
HSVhsv(120, 66%, 49%)
CMYKcmyk(66.4%, 0%, 66.4%, 51%)
CIE-LABlab(46.08, -42.19, 36.92)
CIE-LCHlch(46.08, 56.06, 138.81°)
OKLaboklab(52.11% -0.1146 0.0858)
OKLCHoklch(52.11% 0.143 143.2)
XYZxyz(8.7059, 15.3258, 4.6894)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D2A #7D2A7D
analogous
#537D2A #2A7D2A #2A7D53
triadic
#2A7D2A #2A2A7D #7D2A2A
tetradic
#2A7D2A #2A537D #7D2A7D #7D532A
square
#2A7D2A #2A537D #7D2A7D #7D532A
split-complementary
#2A7D2A #532A7D #7D2A53
monochromatic
#0B210B #1B4F1B #2A7D2A #39AB39 #5AC85A

Accessibility & contrast

On white

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

On black

4.07
#2A7D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7D2A#FFFFFF#000000##FFFFFF
##2A7D2A1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807120
Deuteranopia (green-blind)
#766A31
Tritanopia (blue-blind)
#18796C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d2a;
/* rgb */ color: rgb(42, 125, 42);
/* oklch */ color: oklch(52.1% 0.143 143.2);
Tailwind
colors: {
  custom: {
    50: '#6fa367',
    500: '#2a7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d2a;
$custom-light: #6fa367;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d2a",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 120,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52113,
    "c": 0.14313,
    "h": 143.2
  },
  "luminance": 0.15327
}

Semantic roles & 50–950 ramp

primary
#2A7D2A
secondary
#AD56AD
accent
#4FD9D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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