#2A5411#2A5411

#2A5411 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.0% C 0.106 H 136.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2A5411
RGBrgb(42, 84, 17)
HSLhsl(98, 66%, 20%)
HSVhsv(98, 80%, 33%)
CMYKcmyk(50%, 0%, 79.8%, 67.1%)
CIE-LABlab(31.52, -27.68, 32.59)
CIE-LCHlch(31.52, 42.76, 130.34°)
OKLaboklab(40.04% -0.0769 0.0733)
OKLCHoklch(40.04% 0.106 136.4)
XYZxyz(4.2262, 6.8731, 1.6342)
Luminance0.0687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5411 #3B1154
analogous
#4C5411 #2A5411 #11541A
triadic
#2A5411 #112A54 #54112A
tetradic
#2A5411 #114C54 #3B1154 #541A11
square
#2A5411 #114C54 #3B1154 #541A11
split-complementary
#2A5411 #1A1154 #54114C
monochromatic
#0D1905 #112107 #2A5411 #43871B #5DBA26

Accessibility & contrast

On white

8.84
#2A5411 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A5411 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5411
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5411#FFFFFF#000000##FFFFFF
##2A54111.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C05
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#285147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a5411;
/* rgb */ color: rgb(42, 84, 17);
/* oklch */ color: oklch(40.0% 0.106 136.4);
Tailwind
colors: {
  custom: {
    50: '#688454',
    500: '#2a5411',
    950: '#000000',
  },
}
SCSS
$custom: #2a5411;
$custom-light: #688454;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5411",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 17
  },
  "hsl": {
    "h": 97.612,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40039,
    "c": 0.10627,
    "h": 136.4
  },
  "luminance": 0.06873
}

Semantic roles & 50–950 ramp

primary
#2A5411
secondary
#6C348D
accent
#3FE9AA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5411

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

Preview Lab → · Contrast checker → · Palette generator →

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