#2A7B19#2A7B19

#2A7B19 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.152 H 140.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#2A7B19
RGBrgb(42, 123, 25)
HSLhsl(110, 66%, 29%)
HSVhsv(110, 80%, 48%)
CMYKcmyk(65.9%, 0%, 79.7%, 51.8%)
CIE-LABlab(45.26, -43.00, 43.08)
CIE-LCHlch(45.26, 60.86, 134.95°)
OKLaboklab(51.39% -0.1177 0.0964)
OKLCHoklch(51.39% 0.152 140.7)
XYZxyz(8.2129, 14.7275, 3.3294)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B19 #6A197B
analogous
#5B7B19 #2A7B19 #197B39
triadic
#2A7B19 #192A7B #7B192A
tetradic
#2A7B19 #195B7B #6A197B #7B3919
square
#2A7B19 #195B7B #6A197B #7B3919
split-complementary
#2A7B19 #39197B #7B195B
monochromatic
#091905 #19480F #2A7B19 #3BAE23 #53D738

Accessibility & contrast

On white

5.32
#2A7B19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A7B19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B19
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B19#FFFFFF#000000##FFFFFF
##2A7B191.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F02
Deuteranopia (green-blind)
#756924
Tritanopia (blue-blind)
#1D7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b19;
/* rgb */ color: rgb(42, 123, 25);
/* oklch */ color: oklch(51.4% 0.152 140.7);
Tailwind
colors: {
  custom: {
    50: '#6fa25e',
    500: '#2a7b19',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b19;
$custom-light: #6fa25e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b19",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 25
  },
  "hsl": {
    "h": 109.592,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51394,
    "c": 0.15218,
    "h": 140.7
  },
  "luminance": 0.14728
}

Semantic roles & 50–950 ramp

primary
#2A7B19
secondary
#9C40AF
accent
#3FE9CC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7B19

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

Preview Lab → · Contrast checker → · Palette generator →

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