#2B5212#2B5212

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

Color values

HEX#2B5212
RGBrgb(43, 82, 18)
HSLhsl(97, 64%, 20%)
HSVhsv(97, 78%, 32%)
CMYKcmyk(47.6%, 0%, 78%, 67.8%)
CIE-LABlab(30.86, -26.30, 31.53)
CIE-LCHlch(30.86, 41.06, 129.83°)
OKLaboklab(39.52% -0.0732 0.0712)
OKLCHoklch(39.52% 0.102 135.8)
XYZxyz(4.1226, 6.5916, 1.6272)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5212 #391252
analogous
#4B5212 #2B5212 #125219
triadic
#2B5212 #122B52 #52122B
tetradic
#2B5212 #124B52 #391252 #521912
square
#2B5212 #124B52 #391252 #521912
split-complementary
#2B5212 #191252 #52124B
monochromatic
#0D1906 #112007 #2B5212 #45841D #60B628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B5212#FFFFFF#000000##FFFFFF
##2B52121.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)
#554B07
Deuteranopia (green-blind)
#504718
Tritanopia (blue-blind)
#2A4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b5212;
/* rgb */ color: rgb(43, 82, 18);
/* oklch */ color: oklch(39.5% 0.102 135.8);
Tailwind
colors: {
  custom: {
    50: '#688354',
    500: '#2b5212',
    950: '#000000',
  },
}
SCSS
$custom: #2b5212;
$custom-light: #688354;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5212",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 96.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39515,
    "c": 0.10214,
    "h": 135.8
  },
  "luminance": 0.06592
}

Semantic roles & 50–950 ramp

primary
#2B5212
secondary
#69358B
accent
#41E7A6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5212

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

Preview Lab → · Contrast checker → · Palette generator →

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