#2B5211#2B5211

#2B5211 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.103 H 135.6°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2B5211
RGBrgb(43, 82, 17)
HSLhsl(96, 66%, 19%)
HSVhsv(96, 79%, 32%)
CMYKcmyk(47.6%, 0%, 79.3%, 67.8%)
CIE-LABlab(30.85, -26.38, 31.94)
CIE-LCHlch(30.85, 41.43, 129.55°)
OKLaboklab(39.51% -0.0735 0.0719)
OKLCHoklch(39.51% 0.103 135.6)
XYZxyz(4.1146, 6.5884, 1.5851)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5211 #381152
analogous
#4C5211 #2B5211 #115218
triadic
#2B5211 #112B52 #52112B
tetradic
#2B5211 #114C52 #381152 #521811
square
#2B5211 #114C52 #381152 #521811
split-complementary
#2B5211 #181152 #52114C
monochromatic
#0D1905 #101F06 #2B5211 #46851C #60B726

Accessibility & contrast

On white

9.06
#2B5211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5211
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5211#FFFFFF#000000##FFFFFF
##2B52111.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B06
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#2A4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5211;
/* rgb */ color: rgb(43, 82, 17);
/* oklch */ color: oklch(39.5% 0.103 135.6);
Tailwind
colors: {
  custom: {
    50: '#698354',
    500: '#2b5211',
    950: '#000000',
  },
}
SCSS
$custom: #2b5211;
$custom-light: #698354;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5211",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 96,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39506,
    "c": 0.10285,
    "h": 135.6
  },
  "luminance": 0.06589
}

Semantic roles & 50–950 ramp

primary
#2B5211
secondary
#68348B
accent
#3FE9A5
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5211

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

Preview Lab → · Contrast checker → · Palette generator →

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