#2A7019#2A7019

#2A7019 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.2% C 0.139 H 140.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#2A7019
RGBrgb(42, 112, 25)
HSLhsl(108, 64%, 27%)
HSVhsv(108, 78%, 44%)
CMYKcmyk(62.5%, 0%, 77.7%, 56.1%)
CIE-LABlab(41.45, -38.82, 39.33)
CIE-LCHlch(41.45, 55.26, 134.63°)
OKLaboklab(48.25% -0.1065 0.0886)
OKLCHoklch(48.25% 0.139 140.2)
XYZxyz(6.9242, 12.1501, 2.8998)
Luminance0.1215 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7019 #5F1970
analogous
#567019 #2A7019 #197034
triadic
#2A7019 #192A70 #70192A
tetradic
#2A7019 #195670 #5F1970 #703419
square
#2A7019 #195670 #5F1970 #703419
split-complementary
#2A7019 #341970 #701956
monochromatic
#091906 #173E0E #2A7019 #3DA224 #51D132

Accessibility & contrast

On white

6.12
#2A7019 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#2A7019 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7019
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7019#FFFFFF#000000##FFFFFF
##2A70191.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a7019;
/* rgb */ color: rgb(42, 112, 25);
/* oklch */ color: oklch(48.2% 0.139 140.2);
Tailwind
colors: {
  custom: {
    50: '#6d9a5c',
    500: '#2a7019',
    950: '#000000',
  },
}
SCSS
$custom: #2a7019;
$custom-light: #6d9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7019",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 25
  },
  "hsl": {
    "h": 108.276,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48246,
    "c": 0.13852,
    "h": 140.2
  },
  "luminance": 0.12151
}

Semantic roles & 50–950 ramp

primary
#2A7019
secondary
#9140A5
accent
#41E7C6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7019

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

Preview Lab → · Contrast checker → · Palette generator →

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