#2A6D1F#2A6D1F

#2A6D1F is a mid, vivid green. Relative luminance 0.115; OKLCH L 47.4% C 0.131 H 141.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2A6D1F
RGBrgb(42, 109, 31)
HSLhsl(112, 56%, 27%)
HSVhsv(112, 72%, 43%)
CMYKcmyk(61.5%, 0%, 71.6%, 57.3%)
CIE-LABlab(40.46, -37.10, 35.81)
CIE-LCHlch(40.46, 51.57, 136.01°)
OKLaboklab(47.44% -0.1014 0.0821)
OKLCHoklch(47.44% 0.131 141)
XYZxyz(6.6705, 11.5279, 3.1696)
Luminance0.1153 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6D1F #621F6D
analogous
#516D1F #2A6D1F #1F6D3B
triadic
#2A6D1F #1F2A6D #6D1F2A
tetradic
#2A6D1F #1F516D #621F6D #6D3B1F
square
#2A6D1F #1F516D #621F6D #6D3B1F
split-complementary
#2A6D1F #3B1F6D #6D1F51
monochromatic
#091807 #183D11 #2A6D1F #3C9D2D #52C83E

Accessibility & contrast

On white

6.35
#2A6D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2A6D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6D1F
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6D1F#FFFFFF#000000##FFFFFF
##2A6D1F1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706314
Deuteranopia (green-blind)
#675D26
Tritanopia (blue-blind)
#21695D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a6d1f;
/* rgb */ color: rgb(42, 109, 31);
/* oklch */ color: oklch(47.4% 0.131 141.0);
Tailwind
colors: {
  custom: {
    50: '#6c975f',
    500: '#2a6d1f',
    950: '#000000',
  },
}
SCSS
$custom: #2a6d1f;
$custom-light: #6c975f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6d1f",
  "rgb": {
    "r": 42,
    "g": 109,
    "b": 31
  },
  "hsl": {
    "h": 111.538,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.47436,
    "c": 0.1305,
    "h": 141
  },
  "luminance": 0.11528
}

Semantic roles & 50–950 ramp

primary
#2A6D1F
secondary
#9447A1
accent
#49DFCA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D05
muted
#7A7E79

Preview Lab

Preview with #2A6D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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