#2A7623#2A7623

#2A7623 is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.1% C 0.139 H 141.9°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#2A7623
RGBrgb(42, 118, 35)
HSLhsl(115, 54%, 30%)
HSVhsv(115, 70%, 46%)
CMYKcmyk(64.4%, 0%, 70.3%, 53.7%)
CIE-LABlab(43.61, -40.25, 37.41)
CIE-LCHlch(43.61, 54.95, 137.10°)
OKLaboklab(50.05% -0.1097 0.086)
OKLCHoklch(50.05% 0.139 141.9)
XYZxyz(7.7362, 13.5697, 3.8013)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7623 #6F2376
analogous
#537623 #2A7623 #237646
triadic
#2A7623 #232A76 #76232A
tetradic
#2A7623 #235376 #6F2376 #764623
square
#2A7623 #235376 #6F2376 #764623
split-complementary
#2A7623 #462376 #762353
monochromatic
#081807 #194715 #2A7623 #3BA531 #55C94A

Accessibility & contrast

On white

5.65
#2A7623 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#2A7623 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7623
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7623#FFFFFF#000000##FFFFFF
##2A76231.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B18
Deuteranopia (green-blind)
#70652B
Tritanopia (blue-blind)
#1D7265
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a7623;
/* rgb */ color: rgb(42, 118, 35);
/* oklch */ color: oklch(50.1% 0.139 141.9);
Tailwind
colors: {
  custom: {
    50: '#6e9e62',
    500: '#2a7623',
    950: '#000000',
  },
}
SCSS
$custom: #2a7623;
$custom-light: #6e9e62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7623",
  "rgb": {
    "r": 42,
    "g": 118,
    "b": 35
  },
  "hsl": {
    "h": 114.94,
    "s": 54.248,
    "l": 30
  },
  "oklch": {
    "l": 0.50053,
    "c": 0.13939,
    "h": 141.9
  },
  "luminance": 0.1357
}

Semantic roles & 50–950 ramp

primary
#2A7623
secondary
#A14CA9
accent
#4ADED1
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E05
muted
#7B7E7A

Preview Lab

Preview with #2A7623

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

Preview Lab → · Contrast checker → · Palette generator →

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