#2B5210#2B5210

#2B5210 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.104 H 135.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2B5210
RGBrgb(43, 82, 16)
HSLhsl(95, 67%, 19%)
HSVhsv(95, 80%, 32%)
CMYKcmyk(47.6%, 0%, 80.5%, 67.8%)
CIE-LABlab(30.84, -26.46, 32.35)
CIE-LCHlch(30.84, 41.79, 129.28°)
OKLaboklab(39.5% -0.0738 0.0726)
OKLCHoklch(39.5% 0.104 135.5)
XYZxyz(4.1070, 6.5853, 1.5448)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5210 #371052
analogous
#4C5210 #2B5210 #105216
triadic
#2B5210 #102B52 #52102B
tetradic
#2B5210 #104C52 #371052 #521610
square
#2B5210 #104C52 #371052 #521610
split-complementary
#2B5210 #161052 #52104C
monochromatic
#0D1A05 #101F06 #2B5210 #46851A #61B824

Accessibility & contrast

On white

9.06
#2B5210 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5210
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5210#FFFFFF#000000##FFFFFF
##2B52101.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B04
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#2A4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5210;
/* rgb */ color: rgb(43, 82, 16);
/* oklch */ color: oklch(39.5% 0.104 135.5);
Tailwind
colors: {
  custom: {
    50: '#698353',
    500: '#2b5210',
    950: '#000000',
  },
}
SCSS
$custom: #2b5210;
$custom-light: #698353;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5210",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 16
  },
  "hsl": {
    "h": 95.455,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39498,
    "c": 0.10353,
    "h": 135.5
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#2B5210
secondary
#67328C
accent
#3EEAA4
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5210

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

Preview Lab → · Contrast checker → · Palette generator →

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