#2A7F2D#2A7F2D

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

Color values

HEX#2A7F2D
RGBrgb(42, 127, 45)
HSLhsl(122, 50%, 33%)
HSVhsv(122, 67%, 50%)
CMYKcmyk(66.9%, 0%, 64.6%, 50.2%)
CIE-LABlab(46.79, -42.60, 36.31)
CIE-LCHlch(46.79, 55.98, 139.56°)
OKLaboklab(52.71% -0.1155 0.0848)
OKLCHoklch(52.71% 0.143 143.7)
XYZxyz(9.0173, 15.8595, 5.0681)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F2D #7F2A7C
analogous
#517F2A #2A7F2D #2A7F57
triadic
#2A7F2D #2D2A7F #7F2D2A
tetradic
#2A7F2D #2A517F #7F2A7C #7F572A
square
#2A7F2D #2A517F #7F2A7C #7F572A
split-complementary
#2A7F2D #572A7F #7F2A51
monochromatic
#0C230C #1B511D #2A7F2D #39AD3D #5BC95F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7F2D#FFFFFF#000000##FFFFFF
##2A7F2D1.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)
#827324
Deuteranopia (green-blind)
#776C34
Tritanopia (blue-blind)
#167B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a7f2d;
/* rgb */ color: rgb(42, 127, 45);
/* oklch */ color: oklch(52.7% 0.143 143.7);
Tailwind
colors: {
  custom: {
    50: '#6fa569',
    500: '#2a7f2d',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f2d;
$custom-light: #6fa569;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f2d",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 122.118,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52712,
    "c": 0.14333,
    "h": 143.7
  },
  "luminance": 0.1586
}

Semantic roles & 50–950 ramp

primary
#2A7F2D
secondary
#AE57AB
accent
#4ED5DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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