#2A5712#2A5712

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

Color values

HEX#2A5712
RGBrgb(42, 87, 18)
HSLhsl(99, 66%, 21%)
HSVhsv(99, 79%, 34%)
CMYKcmyk(51.7%, 0%, 79.3%, 65.9%)
CIE-LABlab(32.60, -28.95, 33.26)
CIE-LCHlch(32.60, 44.10, 131.04°)
OKLaboklab(40.93% -0.0803 0.0749)
OKLCHoklch(40.93% 0.11 137)
XYZxyz(4.4721, 7.3520, 1.7556)
Luminance0.0735 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5712 #3F1257
analogous
#4C5712 #2A5712 #12571C
triadic
#2A5712 #122A57 #57122A
tetradic
#2A5712 #124C57 #3F1257 #571C12
square
#2A5712 #124C57 #3F1257 #571C12
split-complementary
#2A5712 #1C1257 #57124C
monochromatic
#0C1905 #122408 #2A5712 #428A1C #5BBC27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5712#FFFFFF#000000##FFFFFF
##2A57121.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)
#5A4F06
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#27544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5712;
/* rgb */ color: rgb(42, 87, 18);
/* oklch */ color: oklch(40.9% 0.110 137.0);
Tailwind
colors: {
  custom: {
    50: '#698755',
    500: '#2a5712',
    950: '#000000',
  },
}
SCSS
$custom: #2a5712;
$custom-light: #698755;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5712",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 99.13,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40927,
    "c": 0.1098,
    "h": 137
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#2A5712
secondary
#703590
accent
#3FE9AE
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5712

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

Preview Lab → · Contrast checker → · Palette generator →

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