#2A7236#2A7236

#2A7236 is a mid, moderate green. Relative luminance 0.128; OKLCH L 49.2% C 0.117 H 146.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#2A7236
RGBrgb(42, 114, 54)
HSLhsl(130, 46%, 31%)
HSVhsv(130, 63%, 45%)
CMYKcmyk(63.2%, 0%, 52.6%, 55.3%)
CIE-LABlab(42.45, -36.17, 26.59)
CIE-LCHlch(42.45, 44.90, 143.68°)
OKLaboklab(49.17% -0.0978 0.0643)
OKLCHoklch(49.17% 0.117 146.7)
XYZxyz(7.6375, 12.7925, 5.5560)
Luminance0.1279 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7236 #722A66
analogous
#42722A #2A7236 #2A725A
triadic
#2A7236 #362A72 #72362A
tetradic
#2A7236 #2A4272 #722A66 #725A2A
square
#2A7236 #2A4272 #722A66 #725A2A
split-complementary
#2A7236 #5A2A72 #722A42
monochromatic
#09190C #1A4521 #2A7236 #3A9F4B #56C168

Accessibility & contrast

On white

5.90
#2A7236 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7236 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7236
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7236#FFFFFF#000000##FFFFFF
##2A72361.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746831
Deuteranopia (green-blind)
#6A623A
Tritanopia (blue-blind)
#196F64
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7236;
/* rgb */ color: rgb(42, 114, 54);
/* oklch */ color: oklch(49.2% 0.117 146.7);
Tailwind
colors: {
  custom: {
    50: '#6c9b6e',
    500: '#2a7236',
    950: '#000000',
  },
}
SCSS
$custom: #2a7236;
$custom-light: #6c9b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7236",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 54
  },
  "hsl": {
    "h": 130,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.49165,
    "c": 0.11707,
    "h": 146.7
  },
  "luminance": 0.12793
}

Semantic roles & 50–950 ramp

primary
#2A7236
secondary
#A45497
accent
#52C0D6
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #2A7236

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

Preview Lab → · Contrast checker → · Palette generator →

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