#2B5111#2B5111

#2B5111 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.101 H 135.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2B5111
RGBrgb(43, 81, 17)
HSLhsl(96, 65%, 19%)
HSVhsv(96, 79%, 32%)
CMYKcmyk(46.9%, 0%, 79%, 68.2%)
CIE-LABlab(30.49, -25.91, 31.58)
CIE-LCHlch(30.49, 40.85, 129.36°)
OKLaboklab(39.21% -0.0722 0.0712)
OKLCHoklch(39.21% 0.101 135.4)
XYZxyz(4.0398, 6.4387, 1.5601)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5111 #371151
analogous
#4B5111 #2B5111 #115117
triadic
#2B5111 #112B51 #51112B
tetradic
#2B5111 #114B51 #371151 #511711
square
#2B5111 #114B51 #371151 #511711
split-complementary
#2B5111 #171151 #51114B
monochromatic
#0D1905 #101E06 #2B5111 #46841C #61B626

Accessibility & contrast

On white

9.18
#2B5111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2B5111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5111
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5111#FFFFFF#000000##FFFFFF
##2B51111.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A06
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#2A4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b5111;
/* rgb */ color: rgb(43, 81, 17);
/* oklch */ color: oklch(39.2% 0.101 135.4);
Tailwind
colors: {
  custom: {
    50: '#688254',
    500: '#2b5111',
    950: '#000000',
  },
}
SCSS
$custom: #2b5111;
$custom-light: #688254;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5111",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 95.625,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39213,
    "c": 0.10142,
    "h": 135.4
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#2B5111
secondary
#67348A
accent
#40E8A4
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5111

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

Preview Lab → · Contrast checker → · Palette generator →

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