#2A7A2B#2A7A2B

#2A7A2B is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.138 H 143.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2A7A2B
RGBrgb(42, 122, 43)
HSLhsl(121, 49%, 32%)
HSVhsv(121, 66%, 48%)
CMYKcmyk(65.6%, 0%, 64.8%, 52.2%)
CIE-LABlab(45.06, -40.92, 35.32)
CIE-LCHlch(45.06, 54.05, 139.20°)
OKLaboklab(51.28% -0.1111 0.0825)
OKLCHoklch(51.28% 0.138 143.4)
XYZxyz(8.3499, 14.5849, 4.6602)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A2B #7A2A79
analogous
#517A2A #2A7A2B #2A7A53
triadic
#2A7A2B #2B2A7A #7A2B2A
tetradic
#2A7A2B #2A517A #7A2A79 #7A532A
square
#2A7A2B #2A517A #7A2A79 #7A532A
split-complementary
#2A7A2B #532A7A #7A2A51
monochromatic
#0B1F0B #1A4C1B #2A7A2B #3AA83B #59C65A

Accessibility & contrast

On white

5.36
#2A7A2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2A7A2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A2B
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A2B#FFFFFF#000000##FFFFFF
##2A7A2B1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F22
Deuteranopia (green-blind)
#736832
Tritanopia (blue-blind)
#197769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a2b;
/* rgb */ color: rgb(42, 122, 43);
/* oklch */ color: oklch(51.3% 0.138 143.4);
Tailwind
colors: {
  custom: {
    50: '#6ea168',
    500: '#2a7a2b',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a2b;
$custom-light: #6ea168;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a2b",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 120.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51276,
    "c": 0.13836,
    "h": 143.4
  },
  "luminance": 0.14586
}

Semantic roles & 50–950 ramp

primary
#2A7A2B
secondary
#AB55AA
accent
#4FD7D8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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