#2A560F#2A560F

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

Color values

HEX#2A560F
RGBrgb(42, 86, 15)
HSLhsl(97, 70%, 20%)
HSVhsv(97, 83%, 34%)
CMYKcmyk(51.2%, 0%, 82.6%, 66.3%)
CIE-LABlab(32.22, -28.73, 34.07)
CIE-LCHlch(32.22, 44.56, 130.14°)
OKLaboklab(40.61% -0.0799 0.0761)
OKLCHoklch(40.61% 0.11 136.4)
XYZxyz(4.3687, 7.1820, 1.6079)
Luminance0.0718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A560F #3B0F56
analogous
#4E560F #2A560F #0F5617
triadic
#2A560F #0F2A56 #560F2A
tetradic
#2A560F #0F4E56 #3B0F56 #56170F
square
#2A560F #0F4E56 #3B0F56 #56170F
split-complementary
#2A560F #170F56 #560F4E
monochromatic
#0D1A05 #112206 #2A560F #438A18 #5DBE21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A560F#FFFFFF#000000##FFFFFF
##2A560F1.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)
#594E02
Deuteranopia (green-blind)
#534A17
Tritanopia (blue-blind)
#285349
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a560f;
/* rgb */ color: rgb(42, 86, 15);
/* oklch */ color: oklch(40.6% 0.110 136.4);
Tailwind
colors: {
  custom: {
    50: '#698653',
    500: '#2a560f',
    950: '#000000',
  },
}
SCSS
$custom: #2a560f;
$custom-light: #698653;
$custom-dark: #000000;
JSON
{
  "hex": "#2a560f",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 15
  },
  "hsl": {
    "h": 97.183,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40611,
    "c": 0.11034,
    "h": 136.4
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#2A560F
secondary
#6C3190
accent
#3BEDA9
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A560F

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

Preview Lab → · Contrast checker → · Palette generator →

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