#2A6814#2A6814

#2A6814 is a mid, vivid green. Relative luminance 0.104; OKLCH L 45.9% C 0.131 H 139.1°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2A6814
RGBrgb(42, 104, 20)
HSLhsl(104, 68%, 24%)
HSVhsv(104, 81%, 41%)
CMYKcmyk(59.6%, 0%, 80.8%, 59.2%)
CIE-LABlab(38.63, -36.03, 38.42)
CIE-LCHlch(38.63, 52.67, 133.16°)
OKLaboklab(45.9% -0.0992 0.086)
OKLCHoklch(45.9% 0.131 139.1)
XYZxyz(6.0312, 10.4429, 2.3595)
Luminance0.1044 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6814 #521468
analogous
#546814 #2A6814 #146828
triadic
#2A6814 #142A68 #68142A
tetradic
#2A6814 #145468 #521468 #682814
square
#2A6814 #145468 #521468 #682814
split-complementary
#2A6814 #281468 #681454
monochromatic
#0A1A05 #15350A #2A6814 #3F9B1E #53CF28

Accessibility & contrast

On white

6.80
#2A6814 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2A6814 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6814
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6814#FFFFFF#000000##FFFFFF
##2A68141.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E02
Deuteranopia (green-blind)
#63591D
Tritanopia (blue-blind)
#236458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6814;
/* rgb */ color: rgb(42, 104, 20);
/* oklch */ color: oklch(45.9% 0.131 139.1);
Tailwind
colors: {
  custom: {
    50: '#6c9459',
    500: '#2a6814',
    950: '#000000',
  },
}
SCSS
$custom: #2a6814;
$custom-light: #6c9459;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6814",
  "rgb": {
    "r": 42,
    "g": 104,
    "b": 20
  },
  "hsl": {
    "h": 104.286,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.459,
    "c": 0.13129,
    "h": 139.1
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#2A6814
secondary
#84399F
accent
#3DEBBD
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A6814

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

Preview Lab → · Contrast checker → · Palette generator →

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