#2B5811#2B5811

#2B5811 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.3% C 0.111 H 136.7°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2B5811
RGBrgb(43, 88, 17)
HSLhsl(98, 68%, 21%)
HSVhsv(98, 81%, 35%)
CMYKcmyk(51.1%, 0%, 80.7%, 65.5%)
CIE-LABlab(32.99, -29.13, 34.07)
CIE-LCHlch(32.99, 44.82, 130.53°)
OKLaboklab(41.26% -0.0809 0.0764)
OKLCHoklch(41.26% 0.111 136.7)
XYZxyz(4.5870, 7.5332, 1.7426)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5811 #3E1158
analogous
#4E5811 #2B5811 #11581A
triadic
#2B5811 #112B58 #58112B
tetradic
#2B5811 #114E58 #3E1158 #581A11
square
#2B5811 #114E58 #3E1158 #581A11
split-complementary
#2B5811 #1A1158 #58114E
monochromatic
#0D1A05 #122507 #2B5811 #448B1B #5DBF25

Accessibility & contrast

On white

8.38
#2B5811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2B5811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5811
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5811#FFFFFF#000000##FFFFFF
##2B58111.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5004
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#29554A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b5811;
/* rgb */ color: rgb(43, 88, 17);
/* oklch */ color: oklch(41.3% 0.111 136.7);
Tailwind
colors: {
  custom: {
    50: '#698755',
    500: '#2b5811',
    950: '#000000',
  },
}
SCSS
$custom: #2b5811;
$custom-light: #698755;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5811",
  "rgb": {
    "r": 43,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 98.028,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41263,
    "c": 0.11128,
    "h": 136.7
  },
  "luminance": 0.07534
}

Semantic roles & 50–950 ramp

primary
#2B5811
secondary
#6F3491
accent
#3DEAAB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2B5811

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

Preview Lab → · Contrast checker → · Palette generator →

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