#2A5617#2A5617

#2A5617 is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.7% C 0.105 H 137.8°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#2A5617
RGBrgb(42, 86, 23)
HSLhsl(102, 58%, 21%)
HSVhsv(102, 73%, 34%)
CMYKcmyk(51.2%, 0%, 73.3%, 66.3%)
CIE-LABlab(32.28, -28.06, 30.75)
CIE-LCHlch(32.28, 41.63, 132.38°)
OKLaboklab(40.68% -0.0775 0.0704)
OKLCHoklch(40.68% 0.105 137.8)
XYZxyz(4.4371, 7.2094, 1.9682)
Luminance0.0721 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5617 #431756
analogous
#4A5617 #2A5617 #175624
triadic
#2A5617 #172A56 #56172A
tetradic
#2A5617 #174A56 #431756 #562417
square
#2A5617 #174A56 #431756 #562417
split-complementary
#2A5617 #241756 #56174A
monochromatic
#0C1806 #12260A #2A5617 #428624 #59B731

Accessibility & contrast

On white

8.60
#2A5617 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2A5617 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5617
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5617#FFFFFF#000000##FFFFFF
##2A56171.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0E
Deuteranopia (green-blind)
#534B1D
Tritanopia (blue-blind)
#275349
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a5617;
/* rgb */ color: rgb(42, 86, 23);
/* oklch */ color: oklch(40.7% 0.105 137.8);
Tailwind
colors: {
  custom: {
    50: '#688658',
    500: '#2a5617',
    950: '#000000',
  },
}
SCSS
$custom: #2a5617;
$custom-light: #688658;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5617",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 23
  },
  "hsl": {
    "h": 101.905,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.1047,
    "h": 137.8
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#2A5617
secondary
#753C8D
accent
#47E1B3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5617

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

Preview Lab → · Contrast checker → · Palette generator →

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