#2B5015#2B5015

#2B5015 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.097 H 136.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2B5015
RGBrgb(43, 80, 21)
HSLhsl(98, 58%, 20%)
HSVhsv(98, 74%, 31%)
CMYKcmyk(46.2%, 0%, 73.7%, 68.6%)
CIE-LABlab(30.17, -25.08, 29.46)
CIE-LCHlch(30.17, 38.69, 130.41°)
OKLaboklab(38.96% -0.0697 0.0673)
OKLCHoklch(38.96% 0.097 136)
XYZxyz(4.0002, 6.3048, 1.7155)
Luminance0.0630 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5015 #3A1550
analogous
#495015 #2B5015 #15501C
triadic
#2B5015 #152B50 #50152B
tetradic
#2B5015 #154950 #3A1550 #501C15
square
#2B5015 #154950 #3A1550 #501C15
split-complementary
#2B5015 #1C1550 #501549
monochromatic
#0D1806 #112008 #2B5015 #458022 #5FB12E

Accessibility & contrast

On white

9.29
#2B5015 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B5015 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5015
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5015#FFFFFF#000000##FFFFFF
##2B50151.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490D
Deuteranopia (green-blind)
#4E461A
Tritanopia (blue-blind)
#2A4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b5015;
/* rgb */ color: rgb(43, 80, 21);
/* oklch */ color: oklch(39.0% 0.097 136.0);
Tailwind
colors: {
  custom: {
    50: '#688156',
    500: '#2b5015',
    950: '#000000',
  },
}
SCSS
$custom: #2b5015;
$custom-light: #688156;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5015",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 97.627,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38958,
    "c": 0.09691,
    "h": 136
  },
  "luminance": 0.06305
}

Semantic roles & 50–950 ramp

primary
#2B5015
secondary
#6A3988
accent
#46E2A8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5015

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

Preview Lab → · Contrast checker → · Palette generator →

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