#2A7012#2A7012

#2A7012 is a mid, vivid green. Relative luminance 0.121; OKLCH L 48.2% C 0.142 H 139.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#2A7012
RGBrgb(42, 112, 18)
HSLhsl(105, 72%, 25%)
HSVhsv(105, 84%, 44%)
CMYKcmyk(62.5%, 0%, 83.9%, 56.1%)
CIE-LABlab(41.41, -39.31, 41.76)
CIE-LCHlch(41.41, 57.35, 133.27°)
OKLaboklab(48.2% -0.1082 0.0926)
OKLCHoklch(48.2% 0.142 139.4)
XYZxyz(6.8579, 12.1236, 2.5508)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7012 #581270
analogous
#597012 #2A7012 #127029
triadic
#2A7012 #122A70 #70122A
tetradic
#2A7012 #125970 #581270 #702912
square
#2A7012 #125970 #581270 #702912
split-complementary
#2A7012 #291270 #701259
monochromatic
#0A1A04 #163B0A #2A7012 #3EA51A #52D923

Accessibility & contrast

On white

6.13
#2A7012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2A7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7012
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7012#FFFFFF#000000##FFFFFF
##2A70121.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6B601D
Tritanopia (blue-blind)
#216C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a7012;
/* rgb */ color: rgb(42, 112, 18);
/* oklch */ color: oklch(48.2% 0.142 139.4);
Tailwind
colors: {
  custom: {
    50: '#6d9a59',
    500: '#2a7012',
    950: '#000000',
  },
}
SCSS
$custom: #2a7012;
$custom-light: #6d9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7012",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 104.681,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48198,
    "c": 0.14241,
    "h": 139.4
  },
  "luminance": 0.12124
}

Semantic roles & 50–950 ramp

primary
#2A7012
secondary
#8A37A7
accent
#39EFC0
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7012

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

Preview Lab → · Contrast checker → · Palette generator →

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