#2A7612#2A7612

#2A7612 is a mid, vivid green. Relative luminance 0.135; OKLCH L 49.9% C 0.150 H 139.8°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#2A7612
RGBrgb(42, 118, 18)
HSLhsl(106, 74%, 27%)
HSVhsv(106, 85%, 46%)
CMYKcmyk(64.4%, 0%, 84.7%, 53.7%)
CIE-LABlab(43.50, -41.59, 43.69)
CIE-LCHlch(43.50, 60.32, 133.58°)
OKLaboklab(49.92% -0.1143 0.0967)
OKLCHoklch(49.92% 0.15 139.8)
XYZxyz(7.5421, 13.4921, 2.7789)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7612 #5E1276
analogous
#5C7612 #2A7612 #12762C
triadic
#2A7612 #122A76 #76122A
tetradic
#2A7612 #125C76 #5E1276 #762C12
square
#2A7612 #125C76 #5E1276 #762C12
split-complementary
#2A7612 #2C1276 #76125C
monochromatic
#091B04 #17410A #2A7612 #3DAB1A #51DE25

Accessibility & contrast

On white

5.68
#2A7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#2A7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7612
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7612#FFFFFF#000000##FFFFFF
##2A76121.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#70641F
Tritanopia (blue-blind)
#207264
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a7612;
/* rgb */ color: rgb(42, 118, 18);
/* oklch */ color: oklch(49.9% 0.150 139.8);
Tailwind
colors: {
  custom: {
    50: '#6f9e5a',
    500: '#2a7612',
    950: '#000000',
  },
}
SCSS
$custom: #2a7612;
$custom-light: #6f9e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7612",
  "rgb": {
    "r": 42,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 105.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49922,
    "c": 0.1497,
    "h": 139.8
  },
  "luminance": 0.13493
}

Semantic roles & 50–950 ramp

primary
#2A7612
secondary
#9037AD
accent
#38F0C4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7612

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

Preview Lab → · Contrast checker → · Palette generator →

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