#2B5D12#2B5D12

#2B5D12 is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.7% C 0.117 H 137.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2B5D12
RGBrgb(43, 93, 18)
HSLhsl(100, 68%, 22%)
HSVhsv(100, 81%, 36%)
CMYKcmyk(53.8%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.77, -31.26, 35.43)
CIE-LCHlch(34.77, 47.25, 131.42°)
OKLaboklab(42.73% -0.0866 0.0794)
OKLCHoklch(42.73% 0.117 137.5)
XYZxyz(5.0196, 8.3856, 1.9262)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5D12 #44125D
analogous
#515D12 #2B5D12 #125D1F
triadic
#2B5D12 #122B5D #5D122B
tetradic
#2B5D12 #12515D #44125D #5D1F12
square
#2B5D12 #12515D #44125D #5D1F12
split-complementary
#2B5D12 #1F125D #5D1251
monochromatic
#0C1A05 #132A08 #2B5D12 #43901C #5AC426

Accessibility & contrast

On white

7.84
#2B5D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2B5D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5D12
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5D12#FFFFFF#000000##FFFFFF
##2B5D121.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605403
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#28594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b5d12;
/* rgb */ color: rgb(43, 93, 18);
/* oklch */ color: oklch(42.7% 0.117 137.5);
Tailwind
colors: {
  custom: {
    50: '#6a8b56',
    500: '#2b5d12',
    950: '#000000',
  },
}
SCSS
$custom: #2b5d12;
$custom-light: #6a8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5d12",
  "rgb": {
    "r": 43,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 100,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.11748,
    "h": 137.5
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#2B5D12
secondary
#753595
accent
#3DEAB1
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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