#2A5713#2A5713

#2A5713 is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 40.9% C 0.109 H 137.2°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2A5713
RGBrgb(42, 87, 19)
HSLhsl(100, 64%, 21%)
HSVhsv(100, 78%, 34%)
CMYKcmyk(51.7%, 0%, 78.2%, 65.9%)
CIE-LABlab(32.60, -28.87, 32.85)
CIE-LCHlch(32.60, 43.74, 131.31°)
OKLaboklab(40.94% -0.08 0.0742)
OKLCHoklch(40.94% 0.109 137.2)
XYZxyz(4.4804, 7.3553, 1.7996)
Luminance0.0736 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5713 #401357
analogous
#4C5713 #2A5713 #13571E
triadic
#2A5713 #132A57 #57132A
tetradic
#2A5713 #134C57 #401357 #571E13
square
#2A5713 #134C57 #401357 #571E13
split-complementary
#2A5713 #1E1357 #57134C
monochromatic
#0C1905 #122508 #2A5713 #42891E #5ABB29

Accessibility & contrast

On white

8.50
#2A5713 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A5713 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5713
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5713#FFFFFF#000000##FFFFFF
##2A57131.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F07
Deuteranopia (green-blind)
#544B1A
Tritanopia (blue-blind)
#27544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5713;
/* rgb */ color: rgb(42, 87, 19);
/* oklch */ color: oklch(40.9% 0.109 137.2);
Tailwind
colors: {
  custom: {
    50: '#698756',
    500: '#2a5713',
    950: '#000000',
  },
}
SCSS
$custom: #2a5713;
$custom-light: #698756;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5713",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 19
  },
  "hsl": {
    "h": 99.706,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40936,
    "c": 0.10912,
    "h": 137.2
  },
  "luminance": 0.07356
}

Semantic roles & 50–950 ramp

primary
#2A5713
secondary
#71368F
accent
#41E7AF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5713

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

Preview Lab → · Contrast checker → · Palette generator →

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