#2B5311#2B5311

#2B5311 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.104 H 135.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2B5311
RGBrgb(43, 83, 17)
HSLhsl(96, 66%, 20%)
HSVhsv(96, 80%, 33%)
CMYKcmyk(48.2%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.21, -26.85, 32.30)
CIE-LCHlch(31.21, 42.00, 129.73°)
OKLaboklab(39.8% -0.0748 0.0727)
OKLCHoklch(39.8% 0.104 135.8)
XYZxyz(4.1906, 6.7403, 1.6104)
Luminance0.0674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5311 #391153
analogous
#4C5311 #2B5311 #115318
triadic
#2B5311 #112B53 #53112B
tetradic
#2B5311 #114C53 #391153 #531811
square
#2B5311 #114C53 #391153 #531811
split-complementary
#2B5311 #181153 #53114C
monochromatic
#0D1905 #112007 #2B5311 #45861B #60B926

Accessibility & contrast

On white

8.94
#2B5311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2B5311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5311
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5311#FFFFFF#000000##FFFFFF
##2B53111.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C05
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#2A5046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5311;
/* rgb */ color: rgb(43, 83, 17);
/* oklch */ color: oklch(39.8% 0.104 135.8);
Tailwind
colors: {
  custom: {
    50: '#698454',
    500: '#2b5311',
    950: '#000000',
  },
}
SCSS
$custom: #2b5311;
$custom-light: #698454;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5311",
  "rgb": {
    "r": 43,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 96.364,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.398,
    "c": 0.10428,
    "h": 135.8
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#2B5311
secondary
#69348C
accent
#3FE9A6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2B5311

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

Preview Lab → · Contrast checker → · Palette generator →

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