#2A5416#2A5416

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

Color values

HEX#2A5416
RGBrgb(42, 84, 22)
HSLhsl(101, 58%, 21%)
HSVhsv(101, 74%, 33%)
CMYKcmyk(50%, 0%, 73.8%, 67.1%)
CIE-LABlab(31.56, -27.24, 30.45)
CIE-LCHlch(31.56, 40.85, 131.82°)
OKLaboklab(40.09% -0.0754 0.0696)
OKLCHoklch(40.09% 0.103 137.3)
XYZxyz(4.2699, 6.8905, 1.8639)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5416 #401654
analogous
#495416 #2A5416 #165421
triadic
#2A5416 #162A54 #54162A
tetradic
#2A5416 #164954 #401654 #542116
square
#2A5416 #164954 #401654 #542116
split-complementary
#2A5416 #211654 #541649
monochromatic
#0C1806 #122409 #2A5416 #428423 #5AB52F

Accessibility & contrast

On white

8.83
#2A5416 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5416
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5416#FFFFFF#000000##FFFFFF
##2A54161.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0D
Deuteranopia (green-blind)
#51491C
Tritanopia (blue-blind)
#285147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a5416;
/* rgb */ color: rgb(42, 84, 22);
/* oklch */ color: oklch(40.1% 0.103 137.3);
Tailwind
colors: {
  custom: {
    50: '#688457',
    500: '#2a5416',
    950: '#000000',
  },
}
SCSS
$custom: #2a5416;
$custom-light: #688457;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5416",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 22
  },
  "hsl": {
    "h": 100.645,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40085,
    "c": 0.10258,
    "h": 137.3
  },
  "luminance": 0.06891
}

Semantic roles & 50–950 ramp

primary
#2A5416
secondary
#713A8B
accent
#46E2B0
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5416

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

Preview Lab → · Contrast checker → · Palette generator →

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