#2A5218#2A5218

#2A5218 is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.5% C 0.098 H 137.4°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2A5218
RGBrgb(42, 82, 24)
HSLhsl(101, 55%, 21%)
HSVhsv(101, 71%, 32%)
CMYKcmyk(48.8%, 0%, 70.7%, 67.8%)
CIE-LABlab(30.86, -26.11, 28.75)
CIE-LCHlch(30.86, 38.83, 132.24°)
OKLaboklab(39.52% -0.0721 0.0663)
OKLCHoklch(39.52% 0.098 137.4)
XYZxyz(4.1369, 6.5925, 1.9185)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5218 #401852
analogous
#475218 #2A5218 #185223
triadic
#2A5218 #182A52 #52182A
tetradic
#2A5218 #184752 #401852 #522318
square
#2A5218 #184752 #401852 #522318
split-complementary
#2A5218 #231852 #521847
monochromatic
#0C1807 #12230A #2A5218 #428126 #5AB134

Accessibility & contrast

On white

9.06
#2A5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5218
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5218#FFFFFF#000000##FFFFFF
##2A52181.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#4F471D
Tritanopia (blue-blind)
#284F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5218;
/* rgb */ color: rgb(42, 82, 24);
/* oklch */ color: oklch(39.5% 0.098 137.4);
Tailwind
colors: {
  custom: {
    50: '#678358',
    500: '#2a5218',
    950: '#000000',
  },
}
SCSS
$custom: #2a5218;
$custom-light: #678358;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5218",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 101.379,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.09797,
    "h": 137.4
  },
  "luminance": 0.06593
}

Semantic roles & 50–950 ramp

primary
#2A5218
secondary
#713D89
accent
#4ADEB0
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5218

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

Preview Lab → · Contrast checker → · Palette generator →

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