#2A6017#2A6017

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

Color values

HEX#2A6017
RGBrgb(42, 96, 23)
HSLhsl(104, 61%, 23%)
HSVhsv(104, 76%, 38%)
CMYKcmyk(56.3%, 0%, 76%, 62.4%)
CIE-LABlab(35.83, -32.47, 34.45)
CIE-LCHlch(35.83, 47.34, 133.31°)
OKLaboklab(43.6% -0.0895 0.0781)
OKLCHoklch(43.6% 0.119 138.9)
XYZxyz(5.2922, 8.9194, 2.2532)
Luminance0.0892 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6017 #4D1760
analogous
#4E6017 #2A6017 #176028
triadic
#2A6017 #172A60 #60172A
tetradic
#2A6017 #174E60 #4D1760 #602817
square
#2A6017 #174E60 #4D1760 #602817
split-complementary
#2A6017 #281760 #60174E
monochromatic
#0B1906 #142F0B #2A6017 #409123 #55C32F

Accessibility & contrast

On white

7.54
#2A6017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A6017
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6017#FFFFFF#000000##FFFFFF
##2A60171.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570B
Deuteranopia (green-blind)
#5C531E
Tritanopia (blue-blind)
#255D52
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a6017;
/* rgb */ color: rgb(42, 96, 23);
/* oklch */ color: oklch(43.6% 0.119 138.9);
Tailwind
colors: {
  custom: {
    50: '#6a8e59',
    500: '#2a6017',
    950: '#000000',
  },
}
SCSS
$custom: #2a6017;
$custom-light: #6a8e59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6017",
  "rgb": {
    "r": 42,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 104.384,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.436,
    "c": 0.11877,
    "h": 138.9
  },
  "luminance": 0.0892
}

Semantic roles & 50–950 ramp

primary
#2A6017
secondary
#7F3C97
accent
#43E4BB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6017

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

Preview Lab → · Contrast checker → · Palette generator →

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