#2A7818#2A7818

#2A7818 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.149 H 140.5°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#2A7818
RGBrgb(42, 120, 24)
HSLhsl(109, 67%, 28%)
HSVhsv(109, 80%, 47%)
CMYKcmyk(65%, 0%, 80%, 52.9%)
CIE-LABlab(44.22, -41.95, 42.42)
CIE-LCHlch(44.22, 59.66, 134.68°)
OKLaboklab(50.53% -0.115 0.0949)
OKLCHoklch(50.53% 0.149 140.5)
XYZxyz(7.8358, 13.9904, 3.1515)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7818 #661878
analogous
#5A7818 #2A7818 #187836
triadic
#2A7818 #182A78 #78182A
tetradic
#2A7818 #185A78 #661878 #783618
square
#2A7818 #185A78 #661878 #783618
split-complementary
#2A7818 #361878 #78185A
monochromatic
#091A05 #18450E #2A7818 #3CAB22 #52D634

Accessibility & contrast

On white

5.53
#2A7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#2A7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7818
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7818#FFFFFF#000000##FFFFFF
##2A78181.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#1E7466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7818;
/* rgb */ color: rgb(42, 120, 24);
/* oklch */ color: oklch(50.5% 0.149 140.5);
Tailwind
colors: {
  custom: {
    50: '#6fa05d',
    500: '#2a7818',
    950: '#000000',
  },
}
SCSS
$custom: #2a7818;
$custom-light: #6fa05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7818",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 108.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50531,
    "c": 0.14908,
    "h": 140.5
  },
  "luminance": 0.13991
}

Semantic roles & 50–950 ramp

primary
#2A7818
secondary
#983FAD
accent
#3EEAC9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2A7818

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

Preview Lab → · Contrast checker → · Palette generator →

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