#2A7C2B#2A7C2B

#2A7C2B is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.141 H 143.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2A7C2B
RGBrgb(42, 124, 43)
HSLhsl(121, 49%, 33%)
HSVhsv(121, 66%, 49%)
CMYKcmyk(66.1%, 0%, 65.3%, 51.4%)
CIE-LABlab(45.75, -41.69, 36.09)
CIE-LCHlch(45.75, 55.14, 139.12°)
OKLaboklab(51.84% -0.1132 0.0841)
OKLCHoklch(51.84% 0.141 143.4)
XYZxyz(8.5980, 15.0811, 4.7429)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C2B #7C2A7B
analogous
#527C2A #2A7C2B #2A7C54
triadic
#2A7C2B #2B2A7C #7C2B2A
tetradic
#2A7C2B #2A527C #7C2A7B #7C542A
square
#2A7C2B #2A527C #7C2A7B #7C542A
split-complementary
#2A7C2B #542A7C #7C2A52
monochromatic
#0B210B #1B4E1B #2A7C2B #39AA3B #59C75B

Accessibility & contrast

On white

5.23
#2A7C2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2A7C2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C2B
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C2B#FFFFFF#000000##FFFFFF
##2A7C2B1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7022
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#18786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c2b;
/* rgb */ color: rgb(42, 124, 43);
/* oklch */ color: oklch(51.8% 0.141 143.4);
Tailwind
colors: {
  custom: {
    50: '#6fa368',
    500: '#2a7c2b',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c2b;
$custom-light: #6fa368;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c2b",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 120.732,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51842,
    "c": 0.14101,
    "h": 143.4
  },
  "luminance": 0.15082
}

Semantic roles & 50–950 ramp

primary
#2A7C2B
secondary
#AD55AB
accent
#4FD7D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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