#2A5418#2A5418

#2A5418 is a dark, moderate green. Relative luminance 0.069; OKLCH L 40.1% C 0.101 H 137.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#2A5418
RGBrgb(42, 84, 24)
HSLhsl(102, 56%, 21%)
HSVhsv(102, 71%, 33%)
CMYKcmyk(50%, 0%, 71.4%, 67.1%)
CIE-LABlab(31.57, -27.04, 29.53)
CIE-LCHlch(31.57, 40.04, 132.49°)
OKLaboklab(40.11% -0.0747 0.0679)
OKLCHoklch(40.11% 0.101 137.7)
XYZxyz(4.2899, 6.8986, 1.9695)
Luminance0.0690 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5418 #421854
analogous
#485418 #2A5418 #185424
triadic
#2A5418 #182A54 #54182A
tetradic
#2A5418 #184854 #421854 #542418
square
#2A5418 #184854 #421854 #542418
split-complementary
#2A5418 #241854 #541848
monochromatic
#0C1807 #12240A #2A5418 #428426 #5AB333

Accessibility & contrast

On white

8.82
#2A5418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A5418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5418
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5418#FFFFFF#000000##FFFFFF
##2A54181.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D10
Deuteranopia (green-blind)
#51491D
Tritanopia (blue-blind)
#275148
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a5418;
/* rgb */ color: rgb(42, 84, 24);
/* oklch */ color: oklch(40.1% 0.101 137.7);
Tailwind
colors: {
  custom: {
    50: '#688458',
    500: '#2a5418',
    950: '#000000',
  },
}
SCSS
$custom: #2a5418;
$custom-light: #688458;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5418",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 24
  },
  "hsl": {
    "h": 102,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40106,
    "c": 0.10095,
    "h": 137.7
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#2A5418
secondary
#733D8B
accent
#49DFB2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5418

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

Preview Lab → · Contrast checker → · Palette generator →

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