#2A7923#2A7923

#2A7923 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.143 H 142.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2A7923
RGBrgb(42, 121, 35)
HSLhsl(115, 55%, 31%)
HSVhsv(115, 71%, 47%)
CMYKcmyk(65.3%, 0%, 71.1%, 52.5%)
CIE-LABlab(44.64, -41.40, 38.51)
CIE-LCHlch(44.64, 56.54, 137.07°)
OKLaboklab(50.91% -0.1128 0.0883)
OKLCHoklch(50.91% 0.143 142)
XYZxyz(8.0952, 14.2875, 3.9209)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7923 #722379
analogous
#557923 #2A7923 #237947
triadic
#2A7923 #232A79 #79232A
tetradic
#2A7923 #235579 #722379 #794723
square
#2A7923 #235579 #722379 #794723
split-complementary
#2A7923 #472379 #792355
monochromatic
#091A08 #1A4A15 #2A7923 #3AA831 #56CB4B

Accessibility & contrast

On white

5.44
#2A7923 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2A7923 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7923
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7923#FFFFFF#000000##FFFFFF
##2A79231.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E17
Deuteranopia (green-blind)
#72672B
Tritanopia (blue-blind)
#1C7568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7923;
/* rgb */ color: rgb(42, 121, 35);
/* oklch */ color: oklch(50.9% 0.143 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ea063',
    500: '#2a7923',
    950: '#000000',
  },
}
SCSS
$custom: #2a7923;
$custom-light: #6ea063;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7923",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 35
  },
  "hsl": {
    "h": 115.116,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.50907,
    "c": 0.14328,
    "h": 142
  },
  "luminance": 0.14288
}

Semantic roles & 50–950 ramp

primary
#2A7923
secondary
#A44CAC
accent
#49DED2
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F05
muted
#7B7E7A

Preview Lab

Preview with #2A7923

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

Preview Lab → · Contrast checker → · Palette generator →

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