#2B5217#2B5217

#2B5217 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.098 H 136.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2B5217
RGBrgb(43, 82, 23)
HSLhsl(100, 56%, 21%)
HSVhsv(100, 72%, 32%)
CMYKcmyk(47.6%, 0%, 72%, 67.8%)
CIE-LABlab(30.90, -25.84, 29.30)
CIE-LCHlch(30.90, 39.06, 131.42°)
OKLaboklab(39.56% -0.0716 0.0673)
OKLCHoklch(39.56% 0.098 136.8)
XYZxyz(4.1681, 6.6098, 1.8666)
Luminance0.0661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5217 #3E1752
analogous
#485217 #2B5217 #175220
triadic
#2B5217 #172B52 #52172B
tetradic
#2B5217 #174852 #3E1752 #522017
square
#2B5217 #174852 #3E1752 #522017
split-complementary
#2B5217 #201752 #521748
monochromatic
#0D1807 #12220A #2B5217 #448224 #5DB232

Accessibility & contrast

On white

9.04
#2B5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2B5217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5217
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5217#FFFFFF#000000##FFFFFF
##2B52171.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0F
Deuteranopia (green-blind)
#50481C
Tritanopia (blue-blind)
#294F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5217;
/* rgb */ color: rgb(43, 82, 23);
/* oklch */ color: oklch(39.6% 0.098 136.8);
Tailwind
colors: {
  custom: {
    50: '#688357',
    500: '#2b5217',
    950: '#000000',
  },
}
SCSS
$custom: #2b5217;
$custom-light: #688357;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5217",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 99.661,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39564,
    "c": 0.09824,
    "h": 136.8
  },
  "luminance": 0.0661
}

Semantic roles & 50–950 ramp

primary
#2B5217
secondary
#6F3C89
accent
#48DFAC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5217

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

Preview Lab → · Contrast checker → · Palette generator →

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