#2A5612#2A5612

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

Color values

HEX#2A5612
RGBrgb(42, 86, 18)
HSLhsl(99, 65%, 20%)
HSVhsv(99, 79%, 34%)
CMYKcmyk(51.2%, 0%, 79.1%, 66.3%)
CIE-LABlab(32.24, -28.50, 32.90)
CIE-LCHlch(32.24, 43.53, 130.90°)
OKLaboklab(40.63% -0.0791 0.0741)
OKLCHoklch(40.63% 0.108 136.9)
XYZxyz(4.3917, 7.1912, 1.7288)
Luminance0.0719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5612 #3E1256
analogous
#4C5612 #2A5612 #12561C
triadic
#2A5612 #122A56 #56122A
tetradic
#2A5612 #124C56 #3E1256 #561C12
square
#2A5612 #124C56 #3E1256 #561C12
split-complementary
#2A5612 #1C1256 #56124C
monochromatic
#0C1905 #112307 #2A5612 #43891D #5BBB27

Accessibility & contrast

On white

8.61
#2A5612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5612
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5612#FFFFFF#000000##FFFFFF
##2A56121.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#285349
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a5612;
/* rgb */ color: rgb(42, 86, 18);
/* oklch */ color: oklch(40.6% 0.108 136.9);
Tailwind
colors: {
  custom: {
    50: '#688655',
    500: '#2a5612',
    950: '#000000',
  },
}
SCSS
$custom: #2a5612;
$custom-light: #688655;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5612",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 98.824,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.10839,
    "h": 136.9
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#2A5612
secondary
#6F358F
accent
#3FE8AD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5612

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

Preview Lab → · Contrast checker → · Palette generator →

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