#2B5B0F#2B5B0F

#2B5B0F is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.117 H 136.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2B5B0F
RGBrgb(43, 91, 15)
HSLhsl(98, 72%, 21%)
HSVhsv(98, 84%, 36%)
CMYKcmyk(52.7%, 0%, 83.5%, 64.3%)
CIE-LABlab(34.05, -30.60, 35.84)
CIE-LCHlch(34.05, 47.12, 130.49°)
OKLaboklab(42.13% -0.085 0.0797)
OKLCHoklch(42.13% 0.117 136.8)
XYZxyz(4.8234, 8.0299, 1.7476)
Luminance0.0803 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5B0F #3F0F5B
analogous
#515B0F #2B5B0F #0F5B19
triadic
#2B5B0F #0F2B5B #5B0F2B
tetradic
#2B5B0F #0F515B #3F0F5B #5B190F
square
#2B5B0F #0F515B #3F0F5B #5B190F
split-complementary
#2B5B0F #190F5B #5B0F51
monochromatic
#0C1A04 #122606 #2B5B0F #449018 #5DC420

Accessibility & contrast

On white

8.06
#2B5B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2B5B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5B0F
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5B0F#FFFFFF#000000##FFFFFF
##2B5B0F1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5300
Deuteranopia (green-blind)
#584F17
Tritanopia (blue-blind)
#28574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2b5b0f;
/* rgb */ color: rgb(43, 91, 15);
/* oklch */ color: oklch(42.1% 0.117 136.8);
Tailwind
colors: {
  custom: {
    50: '#6a8a54',
    500: '#2b5b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2b5b0f;
$custom-light: #6a8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5b0f",
  "rgb": {
    "r": 43,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 97.895,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42126,
    "c": 0.11657,
    "h": 136.8
  },
  "luminance": 0.0803
}

Semantic roles & 50–950 ramp

primary
#2B5B0F
secondary
#703195
accent
#39EEAC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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