#2B5D11#2B5D11

#2B5D11 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.7% C 0.118 H 137.4°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2B5D11
RGBrgb(43, 93, 17)
HSLhsl(99, 69%, 22%)
HSVhsv(99, 82%, 36%)
CMYKcmyk(53.8%, 0%, 81.7%, 63.5%)
CIE-LABlab(34.77, -31.33, 35.80)
CIE-LCHlch(34.77, 47.57, 131.19°)
OKLaboklab(42.72% -0.0869 0.08)
OKLCHoklch(42.72% 0.118 137.4)
XYZxyz(5.0116, 8.3824, 1.8841)
Luminance0.0838 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5D11 #43115D
analogous
#515D11 #2B5D11 #115D1D
triadic
#2B5D11 #112B5D #5D112B
tetradic
#2B5D11 #11515D #43115D #5D1D11
square
#2B5D11 #11515D #43115D #5D1D11
split-complementary
#2B5D11 #1D115D #5D1151
monochromatic
#0C1A05 #132908 #2B5D11 #43911A #5BC424

Accessibility & contrast

On white

7.85
#2B5D11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2B5D11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5D11
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5D11#FFFFFF#000000##FFFFFF
##2B5D111.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605402
Deuteranopia (green-blind)
#5A5019
Tritanopia (blue-blind)
#28594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b5d11;
/* rgb */ color: rgb(43, 93, 17);
/* oklch */ color: oklch(42.7% 0.118 137.4);
Tailwind
colors: {
  custom: {
    50: '#6a8b56',
    500: '#2b5d11',
    950: '#000000',
  },
}
SCSS
$custom: #2b5d11;
$custom-light: #6a8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5d11",
  "rgb": {
    "r": 43,
    "g": 93,
    "b": 17
  },
  "hsl": {
    "h": 99.474,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42724,
    "c": 0.11809,
    "h": 137.4
  },
  "luminance": 0.08383
}

Semantic roles & 50–950 ramp

primary
#2B5D11
secondary
#743496
accent
#3CECB0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5D11

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

Preview Lab → · Contrast checker → · Palette generator →

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