#2A5518#2A5518

#2A5518 is a dark, moderate green. Relative luminance 0.071; OKLCH L 40.4% C 0.102 H 137.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2A5518
RGBrgb(42, 85, 24)
HSLhsl(102, 56%, 21%)
HSVhsv(102, 72%, 33%)
CMYKcmyk(50.6%, 0%, 71.8%, 66.7%)
CIE-LABlab(31.93, -27.50, 29.91)
CIE-LCHlch(31.93, 40.63, 132.60°)
OKLaboklab(40.4% -0.0759 0.0687)
OKLCHoklch(40.4% 0.102 137.9)
XYZxyz(4.3681, 7.0549, 1.9955)
Luminance0.0706 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5518 #431855
analogous
#495518 #2A5518 #185525
triadic
#2A5518 #182A55 #55182A
tetradic
#2A5518 #184955 #431855 #552518
square
#2A5518 #184955 #431855 #552518
split-complementary
#2A5518 #251855 #551849
monochromatic
#0C1807 #12250B #2A5518 #428525 #59B433

Accessibility & contrast

On white

8.71
#2A5518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A5518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5518
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5518#FFFFFF#000000##FFFFFF
##2A55181.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D10
Deuteranopia (green-blind)
#524A1D
Tritanopia (blue-blind)
#275248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a5518;
/* rgb */ color: rgb(42, 85, 24);
/* oklch */ color: oklch(40.4% 0.102 137.9);
Tailwind
colors: {
  custom: {
    50: '#688558',
    500: '#2a5518',
    950: '#000000',
  },
}
SCSS
$custom: #2a5518;
$custom-light: #688558;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5518",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 24
  },
  "hsl": {
    "h": 102.295,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.40398,
    "c": 0.10242,
    "h": 137.9
  },
  "luminance": 0.07055
}

Semantic roles & 50–950 ramp

primary
#2A5518
secondary
#753D8C
accent
#49DFB3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5518

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

Preview Lab → · Contrast checker → · Palette generator →

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