#2A7522#2A7522

#2A7522 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.8% C 0.139 H 141.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#2A7522
RGBrgb(42, 117, 34)
HSLhsl(114, 55%, 30%)
HSVhsv(114, 71%, 46%)
CMYKcmyk(64.1%, 0%, 70.9%, 54.1%)
CIE-LABlab(43.26, -39.96, 37.47)
CIE-LCHlch(43.26, 54.78, 136.84°)
OKLaboklab(49.76% -0.109 0.086)
OKLCHoklch(49.76% 0.139 141.7)
XYZxyz(7.6045, 13.3296, 3.6852)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7522 #6D2275
analogous
#547522 #2A7522 #227544
triadic
#2A7522 #222A75 #75222A
tetradic
#2A7522 #225475 #6D2275 #754422
square
#2A7522 #225475 #6D2275 #754422
split-complementary
#2A7522 #442275 #752254
monochromatic
#091807 #194614 #2A7522 #3BA430 #54CA48

Accessibility & contrast

On white

5.73
#2A7522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#2A7522 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7522
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7522#FFFFFF#000000##FFFFFF
##2A75221.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A16
Deuteranopia (green-blind)
#6F642A
Tritanopia (blue-blind)
#1D7164
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a7522;
/* rgb */ color: rgb(42, 117, 34);
/* oklch */ color: oklch(49.8% 0.139 141.7);
Tailwind
colors: {
  custom: {
    50: '#6e9d62',
    500: '#2a7522',
    950: '#000000',
  },
}
SCSS
$custom: #2a7522;
$custom-light: #6e9d62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7522",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 34
  },
  "hsl": {
    "h": 114.217,
    "s": 54.967,
    "l": 29.608
  },
  "oklch": {
    "l": 0.49757,
    "c": 0.13883,
    "h": 141.7
  },
  "luminance": 0.1333
}

Semantic roles & 50–950 ramp

primary
#2A7522
secondary
#9F4BA8
accent
#49DED0
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A7522

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

Preview Lab → · Contrast checker → · Palette generator →

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