#2A7E2E#2A7E2E

#2A7E2E is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.141 H 143.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2A7E2E
RGBrgb(42, 126, 46)
HSLhsl(123, 50%, 33%)
HSVhsv(123, 67%, 49%)
CMYKcmyk(66.7%, 0%, 63.5%, 50.6%)
CIE-LABlab(46.46, -42.10, 35.46)
CIE-LCHlch(46.46, 55.05, 139.89°)
OKLaboklab(52.44% -0.1141 0.0831)
OKLCHoklch(52.44% 0.141 143.9)
XYZxyz(8.9083, 15.6103, 5.1279)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E2E #7E2A7A
analogous
#507E2A #2A7E2E #2A7E58
triadic
#2A7E2E #2E2A7E #7E2E2A
tetradic
#2A7E2E #2A507E #7E2A7A #7E582A
square
#2A7E2E #2A507E #7E2A7A #7E582A
split-complementary
#2A7E2E #582A7E #7E2A50
monochromatic
#0B220C #1B501D #2A7E2E #39AC3F #5AC860

Accessibility & contrast

On white

5.09
#2A7E2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2A7E2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E2E
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E2E#FFFFFF#000000##FFFFFF
##2A7E2E1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807225
Deuteranopia (green-blind)
#766B35
Tritanopia (blue-blind)
#167B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e2e;
/* rgb */ color: rgb(42, 126, 46);
/* oklch */ color: oklch(52.4% 0.141 143.9);
Tailwind
colors: {
  custom: {
    50: '#6fa46a',
    500: '#2a7e2e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e2e;
$custom-light: #6fa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e2e",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 122.857,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52442,
    "c": 0.14118,
    "h": 143.9
  },
  "luminance": 0.15611
}

Semantic roles & 50–950 ramp

primary
#2A7E2E
secondary
#AE56AA
accent
#4ED3DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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