#2B5912#2B5912

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

Color values

HEX#2B5912
RGBrgb(43, 89, 18)
HSLhsl(99, 66%, 21%)
HSVhsv(99, 80%, 35%)
CMYKcmyk(51.7%, 0%, 79.8%, 65.1%)
CIE-LABlab(33.35, -29.50, 34.03)
CIE-LCHlch(33.35, 45.04, 130.92°)
OKLaboklab(41.56% -0.0819 0.0764)
OKLCHoklch(41.56% 0.112 137)
XYZxyz(4.6777, 7.7017, 1.8122)
Luminance0.0770 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5912 #401259
analogous
#4E5912 #2B5912 #12591C
triadic
#2B5912 #122B59 #59122B
tetradic
#2B5912 #124E59 #401259 #591C12
square
#2B5912 #124E59 #401259 #591C12
split-complementary
#2B5912 #1C1259 #59124E
monochromatic
#0C1905 #122608 #2B5912 #448C1C #5CBF27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B5912#FFFFFF#000000##FFFFFF
##2B59121.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)
#5C5105
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#28564B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b5912;
/* rgb */ color: rgb(43, 89, 18);
/* oklch */ color: oklch(41.6% 0.112 137.0);
Tailwind
colors: {
  custom: {
    50: '#6a8855',
    500: '#2b5912',
    950: '#000000',
  },
}
SCSS
$custom: #2b5912;
$custom-light: #6a8855;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5912",
  "rgb": {
    "r": 43,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 98.873,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41564,
    "c": 0.11201,
    "h": 137
  },
  "luminance": 0.07702
}

Semantic roles & 50–950 ramp

primary
#2B5912
secondary
#713592
accent
#3FE9AD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5912

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

Preview Lab → · Contrast checker → · Palette generator →

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