#2B5911#2B5911

#2B5911 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.6% C 0.113 H 136.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2B5911
RGBrgb(43, 89, 17)
HSLhsl(98, 68%, 21%)
HSVhsv(98, 81%, 35%)
CMYKcmyk(51.7%, 0%, 80.9%, 65.1%)
CIE-LABlab(33.35, -29.57, 34.42)
CIE-LCHlch(33.35, 45.38, 130.67°)
OKLaboklab(41.56% -0.0821 0.0771)
OKLCHoklch(41.56% 0.113 136.8)
XYZxyz(4.6697, 7.6985, 1.7701)
Luminance0.0770 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5911 #3F1159
analogous
#4F5911 #2B5911 #11591B
triadic
#2B5911 #112B59 #59112B
tetradic
#2B5911 #114F59 #3F1159 #591B11
square
#2B5911 #114F59 #3F1159 #591B11
split-complementary
#2B5911 #1B1159 #59114F
monochromatic
#0C1A05 #122607 #2B5911 #448C1B #5DC025

Accessibility & contrast

On white

8.27
#2B5911 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2B5911 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5911
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5911#FFFFFF#000000##FFFFFF
##2B59111.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5103
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#28554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b5911;
/* rgb */ color: rgb(43, 89, 17);
/* oklch */ color: oklch(41.6% 0.113 136.8);
Tailwind
colors: {
  custom: {
    50: '#6a8855',
    500: '#2b5911',
    950: '#000000',
  },
}
SCSS
$custom: #2b5911;
$custom-light: #6a8855;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5911",
  "rgb": {
    "r": 43,
    "g": 89,
    "b": 17
  },
  "hsl": {
    "h": 98.333,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41556,
    "c": 0.11266,
    "h": 136.8
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#2B5911
secondary
#703492
accent
#3DEBAC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5911

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

Preview Lab → · Contrast checker → · Palette generator →

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