#2A5718#2A5718

#2A5718 is a dark, moderate green. Relative luminance 0.074; OKLCH L 41.0% C 0.105 H 138.1°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2A5718
RGBrgb(42, 87, 24)
HSLhsl(103, 57%, 22%)
HSVhsv(103, 72%, 34%)
CMYKcmyk(51.7%, 0%, 72.4%, 65.9%)
CIE-LABlab(32.64, -28.42, 30.67)
CIE-LCHlch(32.64, 41.82, 132.82°)
OKLaboklab(40.98% -0.0784 0.0703)
OKLCHoklch(40.98% 0.105 138.1)
XYZxyz(4.5278, 7.3743, 2.0488)
Luminance0.0737 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5718 #451857
analogous
#4A5718 #2A5718 #185726
triadic
#2A5718 #182A57 #57182A
tetradic
#2A5718 #184A57 #451857 #572618
square
#2A5718 #184A57 #451857 #572618
split-complementary
#2A5718 #261857 #57184A
monochromatic
#0C1807 #13270B #2A5718 #418725 #58B732

Accessibility & contrast

On white

8.48
#2A5718 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A5718 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5718
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5718#FFFFFF#000000##FFFFFF
##2A57181.008.482.478.48
#FFFFFF8.481.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0F
Deuteranopia (green-blind)
#544B1E
Tritanopia (blue-blind)
#27544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5718;
/* rgb */ color: rgb(42, 87, 24);
/* oklch */ color: oklch(41.0% 0.105 138.1);
Tailwind
colors: {
  custom: {
    50: '#688758',
    500: '#2a5718',
    950: '#000000',
  },
}
SCSS
$custom: #2a5718;
$custom-light: #688758;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5718",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 24
  },
  "hsl": {
    "h": 102.857,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.40983,
    "c": 0.10534,
    "h": 138.1
  },
  "luminance": 0.07375
}

Semantic roles & 50–950 ramp

primary
#2A5718
secondary
#773D8E
accent
#48E0B5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5718

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

Preview Lab → · Contrast checker → · Palette generator →

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