#2A7210#2A7210

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

Color values

HEX#2A7210
RGBrgb(42, 114, 16)
HSLhsl(104, 75%, 25%)
HSVhsv(104, 86%, 45%)
CMYKcmyk(63.2%, 0%, 86%, 55.3%)
CIE-LABlab(42.10, -40.19, 43.00)
CIE-LCHlch(42.10, 58.86, 133.06°)
OKLaboklab(48.76% -0.1107 0.0949)
OKLCHoklch(48.76% 0.146 139.4)
XYZxyz(7.0654, 12.5636, 2.5428)
Luminance0.1256 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7210 #581072
analogous
#5B7210 #2A7210 #107227
triadic
#2A7210 #102A72 #72102A
tetradic
#2A7210 #105B72 #581072 #722710
square
#2A7210 #105B72 #581072 #722710
split-complementary
#2A7210 #271072 #72105B
monochromatic
#0A1B04 #163C08 #2A7210 #3EA818 #52DD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7210#FFFFFF#000000##FFFFFF
##2A72101.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)
#766700
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#216E60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7210;
/* rgb */ color: rgb(42, 114, 16);
/* oklch */ color: oklch(48.8% 0.146 139.4);
Tailwind
colors: {
  custom: {
    50: '#6e9b59',
    500: '#2a7210',
    950: '#000000',
  },
}
SCSS
$custom: #2a7210;
$custom-light: #6e9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7210",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 16
  },
  "hsl": {
    "h": 104.082,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48763,
    "c": 0.14579,
    "h": 139.4
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#2A7210
secondary
#8A34A9
accent
#36F2C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7210

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

Preview Lab → · Contrast checker → · Palette generator →

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