#2A7232#2A7232

#2A7232 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.121 H 145.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2A7232
RGBrgb(42, 114, 50)
HSLhsl(127, 46%, 31%)
HSVhsv(127, 63%, 45%)
CMYKcmyk(63.2%, 0%, 56.1%, 55.3%)
CIE-LABlab(42.39, -36.79, 28.67)
CIE-LCHlch(42.39, 46.64, 142.07°)
OKLaboklab(49.1% -0.0996 0.0687)
OKLCHoklch(49.1% 0.121 145.4)
XYZxyz(7.5474, 12.7564, 5.0815)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7232 #722A6A
analogous
#46722A #2A7232 #2A7256
triadic
#2A7232 #322A72 #72322A
tetradic
#2A7232 #2A4672 #722A6A #72562A
square
#2A7232 #2A4672 #722A6A #72562A
split-complementary
#2A7232 #562A72 #722A46
monochromatic
#09190B #1A451E #2A7232 #3A9F46 #56C162

Accessibility & contrast

On white

5.91
#2A7232 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2A7232 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7232
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7232#FFFFFF#000000##FFFFFF
##2A72321.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74682C
Deuteranopia (green-blind)
#6B6237
Tritanopia (blue-blind)
#1A6F64
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7232;
/* rgb */ color: rgb(42, 114, 50);
/* oklch */ color: oklch(49.1% 0.121 145.4);
Tailwind
colors: {
  custom: {
    50: '#6c9b6b',
    500: '#2a7232',
    950: '#000000',
  },
}
SCSS
$custom: #2a7232;
$custom-light: #6c9b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7232",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 50
  },
  "hsl": {
    "h": 126.667,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.49102,
    "c": 0.12098,
    "h": 145.4
  },
  "luminance": 0.12757
}

Semantic roles & 50–950 ramp

primary
#2A7232
secondary
#A4549B
accent
#52C7D6
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #2A7232

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

Preview Lab → · Contrast checker → · Palette generator →

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