#2A7A24#2A7A24

#2A7A24 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.144 H 142.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2A7A24
RGBrgb(42, 122, 36)
HSLhsl(116, 54%, 31%)
HSVhsv(116, 70%, 48%)
CMYKcmyk(65.6%, 0%, 70.5%, 52.2%)
CIE-LABlab(44.99, -41.68, 38.45)
CIE-LCHlch(44.99, 56.71, 137.31°)
OKLaboklab(51.2% -0.1135 0.0883)
OKLCHoklch(51.2% 0.144 142.1)
XYZxyz(8.2324, 14.5379, 4.0410)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A24 #74247A
analogous
#557A24 #2A7A24 #247A49
triadic
#2A7A24 #242A7A #7A242A
tetradic
#2A7A24 #24557A #74247A #7A4924
square
#2A7A24 #24557A #74247A #7A4924
split-complementary
#2A7A24 #49247A #7A2455
monochromatic
#091B08 #1A4B16 #2A7A24 #3AA932 #56CB4E

Accessibility & contrast

On white

5.37
#2A7A24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2A7A24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A24
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A24#FFFFFF#000000##FFFFFF
##2A7A241.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E18
Deuteranopia (green-blind)
#73682C
Tritanopia (blue-blind)
#1B7669
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a24;
/* rgb */ color: rgb(42, 122, 36);
/* oklch */ color: oklch(51.2% 0.144 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ea163',
    500: '#2a7a24',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a24;
$custom-light: #6ea163;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a24",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 36
  },
  "hsl": {
    "h": 115.814,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51201,
    "c": 0.14384,
    "h": 142.1
  },
  "luminance": 0.14539
}

Semantic roles & 50–950 ramp

primary
#2A7A24
secondary
#A64DAC
accent
#4ADED3
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7A24

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

Preview Lab → · Contrast checker → · Palette generator →

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