#2A6016#2A6016

#2A6016 is a dark, moderate green. Relative luminance 0.089; OKLCH L 43.6% C 0.119 H 138.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2A6016
RGBrgb(42, 96, 22)
HSLhsl(104, 63%, 23%)
HSVhsv(104, 77%, 38%)
CMYKcmyk(56.3%, 0%, 77.1%, 62.4%)
CIE-LABlab(35.82, -32.56, 34.86)
CIE-LCHlch(35.82, 47.70, 133.04°)
OKLaboklab(43.59% -0.0898 0.0788)
OKLCHoklch(43.59% 0.119 138.7)
XYZxyz(5.2823, 8.9155, 2.2014)
Luminance0.0892 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6016 #4C1660
analogous
#4F6016 #2A6016 #166027
triadic
#2A6016 #162A60 #60162A
tetradic
#2A6016 #164F60 #4C1660 #602716
square
#2A6016 #164F60 #4C1660 #602716
split-complementary
#2A6016 #271660 #60164F
monochromatic
#0B1906 #142E0B #2A6016 #409221 #56C42D

Accessibility & contrast

On white

7.55
#2A6016 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A6016 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6016
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6016#FFFFFF#000000##FFFFFF
##2A60161.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635709
Deuteranopia (green-blind)
#5C531D
Tritanopia (blue-blind)
#255D52
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a6016;
/* rgb */ color: rgb(42, 96, 22);
/* oklch */ color: oklch(43.6% 0.119 138.7);
Tailwind
colors: {
  custom: {
    50: '#6a8e58',
    500: '#2a6016',
    950: '#000000',
  },
}
SCSS
$custom: #2a6016;
$custom-light: #6a8e58;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6016",
  "rgb": {
    "r": 42,
    "g": 96,
    "b": 22
  },
  "hsl": {
    "h": 103.784,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43591,
    "c": 0.11946,
    "h": 138.7
  },
  "luminance": 0.08916
}

Semantic roles & 50–950 ramp

primary
#2A6016
secondary
#7E3B97
accent
#42E6BA
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6016

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

Preview Lab → · Contrast checker → · Palette generator →

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