#2A7D23#2A7D23

#2A7D23 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.148 H 142.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A7D23
RGBrgb(42, 125, 35)
HSLhsl(115, 56%, 31%)
HSVhsv(115, 72%, 49%)
CMYKcmyk(66.4%, 0%, 72%, 51%)
CIE-LABlab(46.02, -42.91, 39.96)
CIE-LCHlch(46.02, 58.64, 137.04°)
OKLaboklab(52.04% -0.1169 0.0913)
OKLCHoklch(52.04% 0.148 142)
XYZxyz(8.5914, 15.2800, 4.0864)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D23 #76237D
analogous
#577D23 #2A7D23 #237D49
triadic
#2A7D23 #232A7D #7D232A
tetradic
#2A7D23 #23577D #76237D #7D4923
square
#2A7D23 #23577D #76237D #7D4923
split-complementary
#2A7D23 #49237D #7D2357
monochromatic
#0A1D08 #1A4D16 #2A7D23 #3AAD30 #57CD4D

Accessibility & contrast

On white

5.18
#2A7D23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2A7D23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D23
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D23#FFFFFF#000000##FFFFFF
##2A7D231.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807115
Deuteranopia (green-blind)
#766A2C
Tritanopia (blue-blind)
#1A796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d23;
/* rgb */ color: rgb(42, 125, 35);
/* oklch */ color: oklch(52.0% 0.148 142.0);
Tailwind
colors: {
  custom: {
    50: '#6fa363',
    500: '#2a7d23',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d23;
$custom-light: #6fa363;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d23",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 115.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52042,
    "c": 0.14838,
    "h": 142
  },
  "luminance": 0.15281
}

Semantic roles & 50–950 ramp

primary
#2A7D23
secondary
#A84CAF
accent
#48E0D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A7D23

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

Preview Lab → · Contrast checker → · Palette generator →

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