#2A5517#2A5517

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

Color values

HEX#2A5517
RGBrgb(42, 85, 23)
HSLhsl(102, 57%, 21%)
HSVhsv(102, 73%, 33%)
CMYKcmyk(50.6%, 0%, 72.9%, 66.7%)
CIE-LABlab(31.92, -27.60, 30.37)
CIE-LCHlch(31.92, 41.04, 132.27°)
OKLaboklab(40.39% -0.0763 0.0696)
OKLCHoklch(40.39% 0.103 137.6)
XYZxyz(4.3579, 7.0508, 1.9418)
Luminance0.0705 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5517 #421755
analogous
#495517 #2A5517 #175523
triadic
#2A5517 #172A55 #55172A
tetradic
#2A5517 #174955 #421755 #552317
square
#2A5517 #174955 #421755 #552317
split-complementary
#2A5517 #231755 #551749
monochromatic
#0C1807 #12250A #2A5517 #428524 #5AB531

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5517#FFFFFF#000000##FFFFFF
##2A55171.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)
#584D0E
Deuteranopia (green-blind)
#524A1C
Tritanopia (blue-blind)
#275248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a5517;
/* rgb */ color: rgb(42, 85, 23);
/* oklch */ color: oklch(40.4% 0.103 137.6);
Tailwind
colors: {
  custom: {
    50: '#688558',
    500: '#2a5517',
    950: '#000000',
  },
}
SCSS
$custom: #2a5517;
$custom-light: #688558;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5517",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 23
  },
  "hsl": {
    "h": 101.613,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40388,
    "c": 0.10324,
    "h": 137.6
  },
  "luminance": 0.07051
}

Semantic roles & 50–950 ramp

primary
#2A5517
secondary
#733C8C
accent
#47E1B2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5517

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

Preview Lab → · Contrast checker → · Palette generator →

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