#2A7B18#2A7B18

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

Color values

HEX#2A7B18
RGBrgb(42, 123, 24)
HSLhsl(109, 67%, 29%)
HSVhsv(109, 80%, 48%)
CMYKcmyk(65.9%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.25, -43.07, 43.42)
CIE-LCHlch(45.25, 61.15, 134.77°)
OKLaboklab(51.39% -0.118 0.097)
OKLCHoklch(51.39% 0.153 140.6)
XYZxyz(8.2023, 14.7233, 3.2736)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B18 #69187B
analogous
#5C7B18 #2A7B18 #187B38
triadic
#2A7B18 #182A7B #7B182A
tetradic
#2A7B18 #185C7B #69187B #7B3818
square
#2A7B18 #185C7B #69187B #7B3818
split-complementary
#2A7B18 #38187B #7B185C
monochromatic
#091A05 #19480E #2A7B18 #3BAE22 #53D836

Accessibility & contrast

On white

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

On black

3.94
#2A7B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A7B18#FFFFFF#000000##FFFFFF
##2A7B181.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#1D7768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b18;
/* rgb */ color: rgb(42, 123, 24);
/* oklch */ color: oklch(51.4% 0.153 140.6);
Tailwind
colors: {
  custom: {
    50: '#6fa25d',
    500: '#2a7b18',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b18;
$custom-light: #6fa25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b18",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 109.091,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51387,
    "c": 0.15272,
    "h": 140.6
  },
  "luminance": 0.14724
}

Semantic roles & 50–950 ramp

primary
#2A7B18
secondary
#9B3FB0
accent
#3EEACB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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