#2A5611#2A5611

#2A5611 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.6% C 0.109 H 136.7°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#2A5611
RGBrgb(42, 86, 17)
HSLhsl(98, 67%, 20%)
HSVhsv(98, 80%, 34%)
CMYKcmyk(51.2%, 0%, 80.2%, 66.3%)
CIE-LABlab(32.23, -28.58, 33.30)
CIE-LCHlch(32.23, 43.89, 130.64°)
OKLaboklab(40.63% -0.0794 0.0748)
OKLCHoklch(40.63% 0.109 136.7)
XYZxyz(4.3837, 7.1880, 1.6866)
Luminance0.0719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5611 #3D1156
analogous
#4C5611 #2A5611 #11561B
triadic
#2A5611 #112A56 #56112A
tetradic
#2A5611 #114C56 #3D1156 #561B11
square
#2A5611 #114C56 #3D1156 #561B11
split-complementary
#2A5611 #1B1156 #56114C
monochromatic
#0C1A05 #112307 #2A5611 #43891B #5CBC25

Accessibility & contrast

On white

8.62
#2A5611 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2A5611 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5611
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5611#FFFFFF#000000##FFFFFF
##2A56111.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E04
Deuteranopia (green-blind)
#534A18
Tritanopia (blue-blind)
#285349
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a5611;
/* rgb */ color: rgb(42, 86, 17);
/* oklch */ color: oklch(40.6% 0.109 136.7);
Tailwind
colors: {
  custom: {
    50: '#698654',
    500: '#2a5611',
    950: '#000000',
  },
}
SCSS
$custom: #2a5611;
$custom-light: #698654;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5611",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 17
  },
  "hsl": {
    "h": 98.261,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40626,
    "c": 0.10907,
    "h": 136.7
  },
  "luminance": 0.07188
}

Semantic roles & 50–950 ramp

primary
#2A5611
secondary
#6E348F
accent
#3EEAAC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5611

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

Preview Lab → · Contrast checker → · Palette generator →

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