#2A560C#2A560C

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

Color values

HEX#2A560C
RGBrgb(42, 86, 12)
HSLhsl(96, 76%, 19%)
HSVhsv(96, 86%, 34%)
CMYKcmyk(51.2%, 0%, 86%, 66.3%)
CIE-LABlab(32.20, -28.92, 35.12)
CIE-LCHlch(32.20, 45.50, 129.47°)
OKLaboklab(40.59% -0.0807 0.0778)
OKLCHoklch(40.59% 0.112 136.1)
XYZxyz(4.3489, 7.1741, 1.5033)
Luminance0.0717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A560C #380C56
analogous
#4F560C #2A560C #0C5613
triadic
#2A560C #0C2A56 #560C2A
tetradic
#2A560C #0C4F56 #380C56 #56130C
square
#2A560C #0C4F56 #380C56 #56130C
split-complementary
#2A560C #130C56 #560C4F
monochromatic
#0D1B04 #102005 #2A560C #448C13 #5EC11B

Accessibility & contrast

On white

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

On black

2.43
#2A560C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A560C#FFFFFF#000000##FFFFFF
##2A560C1.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E00
Deuteranopia (green-blind)
#544A15
Tritanopia (blue-blind)
#285248
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a560c;
/* rgb */ color: rgb(42, 86, 12);
/* oklch */ color: oklch(40.6% 0.112 136.1);
Tailwind
colors: {
  custom: {
    50: '#698652',
    500: '#2a560c',
    950: '#000000',
  },
}
SCSS
$custom: #2a560c;
$custom-light: #698652;
$custom-dark: #000000;
JSON
{
  "hex": "#2a560c",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 12
  },
  "hsl": {
    "h": 95.676,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.4059,
    "c": 0.11205,
    "h": 136.1
  },
  "luminance": 0.07174
}

Semantic roles & 50–950 ramp

primary
#2A560C
secondary
#682D91
accent
#36F2A6
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B02
muted
#7A7C78

Preview Lab

Preview with #2A560C

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

Preview Lab → · Contrast checker → · Palette generator →

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