#2B5216#2B5216

#2B5216 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.099 H 136.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2B5216
RGBrgb(43, 82, 22)
HSLhsl(99, 58%, 20%)
HSVhsv(99, 73%, 32%)
CMYKcmyk(47.6%, 0%, 73.2%, 67.8%)
CIE-LABlab(30.89, -25.94, 29.76)
CIE-LCHlch(30.89, 39.48, 131.08°)
OKLaboklab(39.55% -0.0719 0.0681)
OKLCHoklch(39.55% 0.099 136.6)
XYZxyz(4.1583, 6.6059, 1.8149)
Luminance0.0661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5216 #3D1652
analogous
#495216 #2B5216 #16521F
triadic
#2B5216 #162B52 #52162B
tetradic
#2B5216 #164952 #3D1652 #521F16
square
#2B5216 #164952 #3D1652 #521F16
split-complementary
#2B5216 #1F1652 #521649
monochromatic
#0D1806 #122209 #2B5216 #448223 #5EB330

Accessibility & contrast

On white

9.05
#2B5216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2B5216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5216
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5216#FFFFFF#000000##FFFFFF
##2B52161.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0E
Deuteranopia (green-blind)
#50471B
Tritanopia (blue-blind)
#294F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5216;
/* rgb */ color: rgb(43, 82, 22);
/* oklch */ color: oklch(39.6% 0.099 136.6);
Tailwind
colors: {
  custom: {
    50: '#688357',
    500: '#2b5216',
    950: '#000000',
  },
}
SCSS
$custom: #2b5216;
$custom-light: #688357;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5216",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 99,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39554,
    "c": 0.09907,
    "h": 136.6
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#2B5216
secondary
#6E3A89
accent
#47E1AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5216

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

Preview Lab → · Contrast checker → · Palette generator →

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