#2A7223#2A7223

#2A7223 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.134 H 141.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2A7223
RGBrgb(42, 114, 35)
HSLhsl(115, 53%, 29%)
HSVhsv(115, 69%, 45%)
CMYKcmyk(63.2%, 0%, 69.3%, 55.3%)
CIE-LABlab(42.23, -38.68, 35.92)
CIE-LCHlch(42.23, 52.79, 137.12°)
OKLaboklab(48.91% -0.1055 0.0828)
OKLCHoklch(48.91% 0.134 141.9)
XYZxyz(7.2752, 12.6475, 3.6476)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7223 #6B2372
analogous
#527223 #2A7223 #237244
triadic
#2A7223 #232A72 #72232A
tetradic
#2A7223 #235272 #6B2372 #724423
square
#2A7223 #235272 #6B2372 #724423
split-complementary
#2A7223 #442372 #722352
monochromatic
#091707 #194315 #2A7223 #3BA131 #54C748

Accessibility & contrast

On white

5.95
#2A7223 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2A7223 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7223
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7223#FFFFFF#000000##FFFFFF
##2A72231.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756719
Deuteranopia (green-blind)
#6C612A
Tritanopia (blue-blind)
#1E6E62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7223;
/* rgb */ color: rgb(42, 114, 35);
/* oklch */ color: oklch(48.9% 0.134 141.9);
Tailwind
colors: {
  custom: {
    50: '#6d9b62',
    500: '#2a7223',
    950: '#000000',
  },
}
SCSS
$custom: #2a7223;
$custom-light: #6d9b62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7223",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 35
  },
  "hsl": {
    "h": 114.684,
    "s": 53.02,
    "l": 29.216
  },
  "oklch": {
    "l": 0.48911,
    "c": 0.13412,
    "h": 141.9
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#2A7223
secondary
#9D4CA5
accent
#4BDCD0
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A7223

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

Preview Lab → · Contrast checker → · Palette generator →

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