#2B5A11#2B5A11

#2B5A11 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 41.8% C 0.114 H 137.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2B5A11
RGBrgb(43, 90, 17)
HSLhsl(99, 68%, 21%)
HSVhsv(99, 81%, 35%)
CMYKcmyk(52.2%, 0%, 81.1%, 64.7%)
CIE-LABlab(33.70, -30.02, 34.76)
CIE-LCHlch(33.70, 45.93, 130.81°)
OKLaboklab(41.85% -0.0833 0.0778)
OKLCHoklch(41.85% 0.114 137)
XYZxyz(4.7535, 7.8661, 1.7980)
Luminance0.0787 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5A11 #40115A
analogous
#4F5A11 #2B5A11 #115A1B
triadic
#2B5A11 #112B5A #5A112B
tetradic
#2B5A11 #114F5A #40115A #5A1B11
square
#2B5A11 #114F5A #40115A #5A1B11
split-complementary
#2B5A11 #1B115A #5A114F
monochromatic
#0C1A05 #122707 #2B5A11 #448D1B #5CC124

Accessibility & contrast

On white

8.16
#2B5A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2B5A11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5A11
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5A11#FFFFFF#000000##FFFFFF
##2B5A111.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5203
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#28564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b5a11;
/* rgb */ color: rgb(43, 90, 17);
/* oklch */ color: oklch(41.8% 0.114 137.0);
Tailwind
colors: {
  custom: {
    50: '#6a8955',
    500: '#2b5a11',
    950: '#000000',
  },
}
SCSS
$custom: #2b5a11;
$custom-light: #6a8955;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5a11",
  "rgb": {
    "r": 43,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 98.63,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41848,
    "c": 0.11402,
    "h": 137
  },
  "luminance": 0.07866
}

Semantic roles & 50–950 ramp

primary
#2B5A11
secondary
#713493
accent
#3DEBAD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5A11

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

Preview Lab → · Contrast checker → · Palette generator →

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