#2A7D1B#2A7D1B

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

Color values

HEX#2A7D1B
RGBrgb(42, 125, 27)
HSLhsl(111, 64%, 30%)
HSVhsv(111, 78%, 49%)
CMYKcmyk(66.4%, 0%, 78.4%, 51%)
CIE-LABlab(45.96, -43.59, 43.05)
CIE-LCHlch(45.96, 61.26, 135.36°)
OKLaboklab(51.98% -0.1192 0.0967)
OKLCHoklch(51.98% 0.153 141)
XYZxyz(8.4859, 15.2378, 3.5307)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D1B #6E1B7D
analogous
#5B7D1B #2A7D1B #1B7D3D
triadic
#2A7D1B #1B2A7D #7D1B2A
tetradic
#2A7D1B #1B5B7D #6E1B7D #7D3D1B
square
#2A7D1B #1B5B7D #6E1B7D #7D3D1B
split-complementary
#2A7D1B #3D1B7D #7D1B5B
monochromatic
#081905 #194B10 #2A7D1B #3BAF26 #55D53D

Accessibility & contrast

On white

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

On black

4.05
#2A7D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7D1B#FFFFFF#000000##FFFFFF
##2A7D1B1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807105
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#1C796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d1b;
/* rgb */ color: rgb(42, 125, 27);
/* oklch */ color: oklch(52.0% 0.153 141.0);
Tailwind
colors: {
  custom: {
    50: '#70a35f',
    500: '#2a7d1b',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d1b;
$custom-light: #70a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d1b",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 110.816,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51977,
    "c": 0.15348,
    "h": 141
  },
  "luminance": 0.15239
}

Semantic roles & 50–950 ramp

primary
#2A7D1B
secondary
#A043B1
accent
#40E7CE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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