#2A7045#2A7045

#2A7045 is a mid, moderate green. Relative luminance 0.125; OKLCH L 48.9% C 0.099 H 153.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#2A7045
RGBrgb(42, 112, 69)
HSLhsl(143, 45%, 30%)
HSVhsv(143, 63%, 44%)
CMYKcmyk(62.5%, 0%, 38.4%, 56.1%)
CIE-LABlab(42.01, -32.57, 17.57)
CIE-LCHlch(42.01, 37.01, 151.66°)
OKLaboklab(48.89% -0.0883 0.044)
OKLCHoklch(48.89% 0.099 153.5)
XYZxyz(7.8226, 12.5095, 7.6314)
Luminance0.1251 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7045 #702A55
analogous
#32702A #2A7045 #2A7068
triadic
#2A7045 #452A70 #70452A
tetradic
#2A7045 #2A3270 #702A55 #70682A
square
#2A7045 #2A3270 #702A55 #70682A
split-complementary
#2A7045 #682A70 #702A32
monochromatic
#09170E #19432A #2A7045 #3B9D60 #55BF7E

Accessibility & contrast

On white

6.00
#2A7045 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#2A7045 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7045
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7045#FFFFFF#000000##FFFFFF
##2A70451.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706742
Deuteranopia (green-blind)
#676148
Tritanopia (blue-blind)
#126F65
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7045;
/* rgb */ color: rgb(42, 112, 69);
/* oklch */ color: oklch(48.9% 0.099 153.5);
Tailwind
colors: {
  custom: {
    50: '#6b9a79',
    500: '#2a7045',
    950: '#000000',
  },
}
SCSS
$custom: #2a7045;
$custom-light: #6b9a79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7045",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 69
  },
  "hsl": {
    "h": 143.143,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.4889,
    "c": 0.09865,
    "h": 153.5
  },
  "luminance": 0.1251
}

Semantic roles & 50–950 ramp

primary
#2A7045
secondary
#A25484
accent
#53A3D5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #2A7045

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

Preview Lab → · Contrast checker → · Palette generator →

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