#2A7212#2A7212

#2A7212 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.145 H 139.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#2A7212
RGBrgb(42, 114, 18)
HSLhsl(105, 73%, 26%)
HSVhsv(105, 84%, 45%)
CMYKcmyk(63.2%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.11, -40.08, 42.41)
CIE-LCHlch(42.11, 58.35, 133.38°)
OKLaboklab(48.77% -0.1102 0.094)
OKLCHoklch(48.77% 0.145 139.6)
XYZxyz(7.0810, 12.5699, 2.6252)
Luminance0.1257 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7212 #5A1272
analogous
#5A7212 #2A7212 #12722A
triadic
#2A7212 #122A72 #72122A
tetradic
#2A7212 #125A72 #5A1272 #722A12
square
#2A7212 #125A72 #5A1272 #722A12
split-complementary
#2A7212 #2A1272 #72125A
monochromatic
#0A1A04 #173D0A #2A7212 #3DA71A #51DC23

Accessibility & contrast

On white

5.98
#2A7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2A7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7212
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7212#FFFFFF#000000##FFFFFF
##2A72121.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6D611E
Tritanopia (blue-blind)
#216E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7212;
/* rgb */ color: rgb(42, 114, 18);
/* oklch */ color: oklch(48.8% 0.145 139.6);
Tailwind
colors: {
  custom: {
    50: '#6e9b59',
    500: '#2a7212',
    950: '#000000',
  },
}
SCSS
$custom: #2a7212;
$custom-light: #6e9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7212",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 105,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.14486,
    "h": 139.6
  },
  "luminance": 0.12571
}

Semantic roles & 50–950 ramp

primary
#2A7212
secondary
#8C37A9
accent
#38EFC2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7212

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

Preview Lab → · Contrast checker → · Palette generator →

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