#2B5115#2B5115

#2B5115 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.098 H 136.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2B5115
RGBrgb(43, 81, 21)
HSLhsl(98, 59%, 20%)
HSVhsv(98, 74%, 32%)
CMYKcmyk(46.9%, 0%, 74.1%, 68.2%)
CIE-LABlab(30.53, -25.56, 29.84)
CIE-LCHlch(30.53, 39.29, 130.58°)
OKLaboklab(39.25% -0.071 0.0681)
OKLCHoklch(39.25% 0.098 136.2)
XYZxyz(4.0739, 6.4524, 1.7401)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5115 #3B1551
analogous
#495115 #2B5115 #15511D
triadic
#2B5115 #152B51 #51152B
tetradic
#2B5115 #154951 #3B1551 #511D15
square
#2B5115 #154951 #3B1551 #511D15
split-complementary
#2B5115 #1D1551 #511549
monochromatic
#0D1806 #112008 #2B5115 #458222 #5FB22E

Accessibility & contrast

On white

9.17
#2B5115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5115
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5115#FFFFFF#000000##FFFFFF
##2B51151.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b5115;
/* rgb */ color: rgb(43, 81, 21);
/* oklch */ color: oklch(39.3% 0.098 136.2);
Tailwind
colors: {
  custom: {
    50: '#688256',
    500: '#2b5115',
    950: '#000000',
  },
}
SCSS
$custom: #2b5115;
$custom-light: #688256;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5115",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 98,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.39251,
    "c": 0.09839,
    "h": 136.2
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#2B5115
secondary
#6C3989
accent
#46E2A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5115

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

Preview Lab → · Contrast checker → · Palette generator →

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