#2A7C2A#2A7C2A

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

Color values

HEX#2A7C2A
RGBrgb(42, 124, 42)
HSLhsl(120, 49%, 33%)
HSVhsv(120, 66%, 49%)
CMYKcmyk(66.1%, 0%, 66.1%, 51.4%)
CIE-LABlab(45.74, -41.81, 36.55)
CIE-LCHlch(45.74, 55.53, 138.84°)
OKLaboklab(51.83% -0.1135 0.085)
OKLCHoklch(51.83% 0.142 143.2)
XYZxyz(8.5799, 15.0739, 4.6474)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C2A #7C2A7C
analogous
#537C2A #2A7C2A #2A7C53
triadic
#2A7C2A #2A2A7C #7C2A2A
tetradic
#2A7C2A #2A537C #7C2A7C #7C532A
square
#2A7C2A #2A537C #7C2A7C #7C532A
split-complementary
#2A7C2A #532A7C #7C2A53
monochromatic
#0B210B #1B4E1B #2A7C2A #39AA39 #59C759

Accessibility & contrast

On white

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

On black

4.01
#2A7C2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7C2A#FFFFFF#000000##FFFFFF
##2A7C2A1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7020
Deuteranopia (green-blind)
#756A31
Tritanopia (blue-blind)
#19786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c2a;
/* rgb */ color: rgb(42, 124, 42);
/* oklch */ color: oklch(51.8% 0.142 143.2);
Tailwind
colors: {
  custom: {
    50: '#6fa367',
    500: '#2a7c2a',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c2a;
$custom-light: #6fa367;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c2a",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 42
  },
  "hsl": {
    "h": 120,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51831,
    "c": 0.14182,
    "h": 143.2
  },
  "luminance": 0.15075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A7C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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