#2A7F2E#2A7F2E

#2A7F2E is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.142 H 143.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2A7F2E
RGBrgb(42, 127, 46)
HSLhsl(123, 50%, 33%)
HSVhsv(123, 67%, 50%)
CMYKcmyk(66.9%, 0%, 63.8%, 50.2%)
CIE-LABlab(46.80, -42.48, 35.85)
CIE-LCHlch(46.80, 55.59, 139.84°)
OKLaboklab(52.72% -0.1152 0.0839)
OKLCHoklch(52.72% 0.143 143.9)
XYZxyz(9.0368, 15.8673, 5.1707)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F2E #7F2A7B
analogous
#507F2A #2A7F2E #2A7F58
triadic
#2A7F2E #2E2A7F #7F2E2A
tetradic
#2A7F2E #2A507F #7F2A7B #7F582A
square
#2A7F2E #2A507F #7F2A7B #7F582A
split-complementary
#2A7F2E #582A7F #7F2A50
monochromatic
#0C230D #1B511D #2A7F2E #39AD3F #5BC960

Accessibility & contrast

On white

5.03
#2A7F2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2A7F2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F2E
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F2E#FFFFFF#000000##FFFFFF
##2A7F2E1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817325
Deuteranopia (green-blind)
#776C35
Tritanopia (blue-blind)
#167B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f2e;
/* rgb */ color: rgb(42, 127, 46);
/* oklch */ color: oklch(52.7% 0.142 143.9);
Tailwind
colors: {
  custom: {
    50: '#6fa56a',
    500: '#2a7f2e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f2e;
$custom-light: #6fa56a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f2e",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 122.824,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52724,
    "c": 0.1425,
    "h": 143.9
  },
  "luminance": 0.15868
}

Semantic roles & 50–950 ramp

primary
#2A7F2E
secondary
#AE57AA
accent
#4ED3DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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