#2B5116#2B5116

#2B5116 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.098 H 136.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2B5116
RGBrgb(43, 81, 22)
HSLhsl(99, 57%, 20%)
HSVhsv(99, 73%, 32%)
CMYKcmyk(46.9%, 0%, 72.8%, 68.2%)
CIE-LABlab(30.54, -25.46, 29.38)
CIE-LCHlch(30.54, 38.88, 130.92°)
OKLaboklab(39.26% -0.0706 0.0673)
OKLCHoklch(39.26% 0.098 136.4)
XYZxyz(4.0834, 6.4561, 1.7899)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5116 #3C1651
analogous
#485116 #2B5116 #16511E
triadic
#2B5116 #162B51 #51162B
tetradic
#2B5116 #164851 #3C1651 #511E16
square
#2B5116 #164851 #3C1651 #511E16
split-complementary
#2B5116 #1E1651 #511648
monochromatic
#0D1807 #112109 #2B5116 #458123 #5EB130

Accessibility & contrast

On white

9.17
#2B5116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2B5116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5116
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5116#FFFFFF#000000##FFFFFF
##2B51161.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0E
Deuteranopia (green-blind)
#4F471B
Tritanopia (blue-blind)
#294E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b5116;
/* rgb */ color: rgb(43, 81, 22);
/* oklch */ color: oklch(39.3% 0.098 136.4);
Tailwind
colors: {
  custom: {
    50: '#688257',
    500: '#2b5116',
    950: '#000000',
  },
}
SCSS
$custom: #2b5116;
$custom-light: #688257;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5116",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 98.644,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39261,
    "c": 0.09758,
    "h": 136.4
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#2B5116
secondary
#6D3A88
accent
#47E1AA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5116

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

Preview Lab → · Contrast checker → · Palette generator →

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