#2B5B11#2B5B11

#2B5B11 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.115 H 137.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2B5B11
RGBrgb(43, 91, 17)
HSLhsl(99, 69%, 21%)
HSVhsv(99, 81%, 36%)
CMYKcmyk(52.7%, 0%, 81.3%, 64.3%)
CIE-LABlab(34.06, -30.46, 35.11)
CIE-LCHlch(34.06, 46.48, 130.94°)
OKLaboklab(42.14% -0.0845 0.0785)
OKLCHoklch(42.14% 0.115 137.1)
XYZxyz(4.8384, 8.0359, 1.8263)
Luminance0.0804 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5B11 #41115B
analogous
#505B11 #2B5B11 #115B1C
triadic
#2B5B11 #112B5B #5B112B
tetradic
#2B5B11 #11505B #41115B #5B1C11
square
#2B5B11 #11505B #41115B #5B1C11
split-complementary
#2B5B11 #1C115B #5B1150
monochromatic
#0C1A05 #132707 #2B5B11 #438F1B #5CC224

Accessibility & contrast

On white

8.05
#2B5B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2B5B11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5B11
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5B11#FFFFFF#000000##FFFFFF
##2B5B111.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5303
Deuteranopia (green-blind)
#584F19
Tritanopia (blue-blind)
#28574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2b5b11;
/* rgb */ color: rgb(43, 91, 17);
/* oklch */ color: oklch(42.1% 0.115 137.1);
Tailwind
colors: {
  custom: {
    50: '#6a8a55',
    500: '#2b5b11',
    950: '#000000',
  },
}
SCSS
$custom: #2b5b11;
$custom-light: #6a8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5b11",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 98.919,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.4214,
    "c": 0.11539,
    "h": 137.1
  },
  "luminance": 0.08036
}

Semantic roles & 50–950 ramp

primary
#2B5B11
secondary
#723494
accent
#3CEBAE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5B11

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

Preview Lab → · Contrast checker → · Palette generator →

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