#2B5011#2B5011

#2B5011 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.100 H 135.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2B5011
RGBrgb(43, 80, 17)
HSLhsl(95, 65%, 19%)
HSVhsv(95, 79%, 31%)
CMYKcmyk(46.2%, 0%, 78.8%, 68.6%)
CIE-LABlab(30.14, -25.44, 31.22)
CIE-LCHlch(30.14, 40.27, 129.17°)
OKLaboklab(38.92% -0.071 0.0704)
OKLCHoklch(38.92% 0.1 135.2)
XYZxyz(3.9660, 6.2912, 1.5355)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5011 #361150
analogous
#4B5011 #2B5011 #115017
triadic
#2B5011 #112B50 #50112B
tetradic
#2B5011 #114B50 #361150 #501711
square
#2B5011 #114B50 #361150 #501711
split-complementary
#2B5011 #171150 #50114B
monochromatic
#0E1905 #101E06 #2B5011 #46821C #61B526

Accessibility & contrast

On white

9.30
#2B5011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B5011 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5011
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5011#FFFFFF#000000##FFFFFF
##2B50111.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534906
Deuteranopia (green-blind)
#4E4617
Tritanopia (blue-blind)
#2A4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b5011;
/* rgb */ color: rgb(43, 80, 17);
/* oklch */ color: oklch(38.9% 0.100 135.2);
Tailwind
colors: {
  custom: {
    50: '#688154',
    500: '#2b5011',
    950: '#000000',
  },
}
SCSS
$custom: #2b5011;
$custom-light: #688154;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5011",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 95.238,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3892,
    "c": 0.09998,
    "h": 135.2
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#2B5011
secondary
#663389
accent
#40E8A3
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5011

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

Preview Lab → · Contrast checker → · Palette generator →

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