#2A7D2B#2A7D2B

#2A7D2B is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.142 H 143.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2A7D2B
RGBrgb(42, 125, 43)
HSLhsl(121, 50%, 33%)
HSVhsv(121, 66%, 49%)
CMYKcmyk(66.4%, 0%, 65.6%, 51%)
CIE-LABlab(46.09, -42.07, 36.47)
CIE-LCHlch(46.09, 55.68, 139.08°)
OKLaboklab(52.13% -0.1142 0.0849)
OKLCHoklch(52.13% 0.142 143.4)
XYZxyz(8.7240, 15.3330, 4.7848)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D2B #7D2A7C
analogous
#527D2A #2A7D2B #2A7D54
triadic
#2A7D2B #2B2A7D #7D2B2A
tetradic
#2A7D2B #2A527D #7D2A7C #7D542A
square
#2A7D2B #2A527D #7D2A7C #7D542A
split-complementary
#2A7D2B #542A7D #7D2A52
monochromatic
#0B210B #1B4F1B #2A7D2B #39AB3B #5AC85B

Accessibility & contrast

On white

5.16
#2A7D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2A7D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D2B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D2B#FFFFFF#000000##FFFFFF
##2A7D2B1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807121
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#18796C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d2b;
/* rgb */ color: rgb(42, 125, 43);
/* oklch */ color: oklch(52.1% 0.142 143.4);
Tailwind
colors: {
  custom: {
    50: '#6fa368',
    500: '#2a7d2b',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d2b;
$custom-light: #6fa368;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d2b",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 120.723,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52125,
    "c": 0.14234,
    "h": 143.4
  },
  "luminance": 0.15334
}

Semantic roles & 50–950 ramp

primary
#2A7D2B
secondary
#AD56AC
accent
#4FD8D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A7D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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