#2B5712#2B5712

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

Color values

HEX#2B5712
RGBrgb(43, 87, 18)
HSLhsl(98, 66%, 21%)
HSVhsv(98, 79%, 34%)
CMYKcmyk(50.6%, 0%, 79.3%, 65.9%)
CIE-LABlab(32.64, -28.60, 33.32)
CIE-LCHlch(32.64, 43.91, 130.64°)
OKLaboklab(40.98% -0.0795 0.075)
OKLCHoklch(40.98% 0.109 136.7)
XYZxyz(4.5135, 7.3734, 1.7575)
Luminance0.0737 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5712 #3E1257
analogous
#4D5712 #2B5712 #12571B
triadic
#2B5712 #122B57 #57122B
tetradic
#2B5712 #124D57 #3E1257 #571B12
square
#2B5712 #124D57 #3E1257 #571B12
split-complementary
#2B5712 #1B1257 #57124D
monochromatic
#0D1905 #122408 #2B5712 #448A1C #5DBC27

Accessibility & contrast

On white

8.49
#2B5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5712
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5712#FFFFFF#000000##FFFFFF
##2B57121.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F06
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#29544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b5712;
/* rgb */ color: rgb(43, 87, 18);
/* oklch */ color: oklch(41.0% 0.109 136.7);
Tailwind
colors: {
  custom: {
    50: '#698755',
    500: '#2b5712',
    950: '#000000',
  },
}
SCSS
$custom: #2b5712;
$custom-light: #698755;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5712",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 98.261,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40979,
    "c": 0.10923,
    "h": 136.7
  },
  "luminance": 0.07374
}

Semantic roles & 50–950 ramp

primary
#2B5712
secondary
#6F3590
accent
#3FE9AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5712

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

Preview Lab → · Contrast checker → · Palette generator →

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