#2A6214#2A6214

#2A6214 is a dark, vivid green. Relative luminance 0.093; OKLCH L 44.2% C 0.123 H 138.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2A6214
RGBrgb(42, 98, 20)
HSLhsl(103, 66%, 23%)
HSVhsv(103, 80%, 38%)
CMYKcmyk(57.1%, 0%, 79.6%, 61.6%)
CIE-LABlab(36.51, -33.56, 36.36)
CIE-LCHlch(36.51, 49.48, 132.71°)
OKLaboklab(44.16% -0.0926 0.0816)
OKLCHoklch(44.16% 0.123 138.6)
XYZxyz(5.4486, 9.2777, 2.1653)
Luminance0.0928 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6214 #4C1462
analogous
#516214 #2A6214 #146225
triadic
#2A6214 #142A62 #62142A
tetradic
#2A6214 #145162 #4C1462 #622514
square
#2A6214 #145162 #4C1462 #622514
split-complementary
#2A6214 #251462 #621451
monochromatic
#0B1905 #142F0A #2A6214 #40951E #56C829

Accessibility & contrast

On white

7.35
#2A6214 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A6214 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6214
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6214#FFFFFF#000000##FFFFFF
##2A62141.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655905
Deuteranopia (green-blind)
#5E541C
Tritanopia (blue-blind)
#255E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a6214;
/* rgb */ color: rgb(42, 98, 20);
/* oklch */ color: oklch(44.2% 0.123 138.6);
Tailwind
colors: {
  custom: {
    50: '#6a8f58',
    500: '#2a6214',
    950: '#000000',
  },
}
SCSS
$custom: #2a6214;
$custom-light: #6a8f58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6214",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 20
  },
  "hsl": {
    "h": 103.077,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44157,
    "c": 0.12345,
    "h": 138.6
  },
  "luminance": 0.09278
}

Semantic roles & 50–950 ramp

primary
#2A6214
secondary
#7E3899
accent
#3FE9B9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A6214

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

Preview Lab → · Contrast checker → · Palette generator →

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