#2A5217#2A5217

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

Color values

HEX#2A5217
RGBrgb(42, 82, 23)
HSLhsl(101, 56%, 21%)
HSVhsv(101, 72%, 32%)
CMYKcmyk(48.8%, 0%, 72%, 67.8%)
CIE-LABlab(30.85, -26.21, 29.23)
CIE-LCHlch(30.85, 39.26, 131.88°)
OKLaboklab(39.51% -0.0725 0.0672)
OKLCHoklch(39.51% 0.099 137.2)
XYZxyz(4.1267, 6.5884, 1.8647)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5217 #3F1752
analogous
#475217 #2A5217 #175221
triadic
#2A5217 #172A52 #52172A
tetradic
#2A5217 #174752 #3F1752 #522117
square
#2A5217 #174752 #3F1752 #522117
split-complementary
#2A5217 #211752 #521747
monochromatic
#0C1807 #12220A #2A5217 #428224 #5BB232

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5217#FFFFFF#000000##FFFFFF
##2A52171.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)
#554B0F
Deuteranopia (green-blind)
#4F471C
Tritanopia (blue-blind)
#284F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5217;
/* rgb */ color: rgb(42, 82, 23);
/* oklch */ color: oklch(39.5% 0.099 137.2);
Tailwind
colors: {
  custom: {
    50: '#688357',
    500: '#2a5217',
    950: '#000000',
  },
}
SCSS
$custom: #2a5217;
$custom-light: #688357;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5217",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 100.678,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39509,
    "c": 0.09882,
    "h": 137.2
  },
  "luminance": 0.06589
}

Semantic roles & 50–950 ramp

primary
#2A5217
secondary
#703C89
accent
#48DFAF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5217

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

Preview Lab → · Contrast checker → · Palette generator →

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