#2C5211#2C5211

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

Color values

HEX#2C5211
RGBrgb(44, 82, 17)
HSLhsl(95, 66%, 19%)
HSVhsv(95, 79%, 32%)
CMYKcmyk(46.3%, 0%, 79.3%, 67.8%)
CIE-LABlab(30.90, -26.00, 32.01)
CIE-LCHlch(30.90, 41.24, 129.09°)
OKLaboklab(39.56% -0.0726 0.0721)
OKLCHoklch(39.56% 0.102 135.2)
XYZxyz(4.1571, 6.6103, 1.5871)
Luminance0.0661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5211 #371152
analogous
#4D5211 #2C5211 #115217
triadic
#2C5211 #112C52 #52112C
tetradic
#2C5211 #114D52 #371152 #521711
square
#2C5211 #114D52 #371152 #521711
split-complementary
#2C5211 #171152 #52114D
monochromatic
#0E1905 #111F06 #2C5211 #47851C #62B726

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C5211#FFFFFF#000000##FFFFFF
##2C52111.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)
#554B06
Deuteranopia (green-blind)
#504817
Tritanopia (blue-blind)
#2B4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c5211;
/* rgb */ color: rgb(44, 82, 17);
/* oklch */ color: oklch(39.6% 0.102 135.2);
Tailwind
colors: {
  custom: {
    50: '#698354',
    500: '#2c5211',
    950: '#000000',
  },
}
SCSS
$custom: #2c5211;
$custom-light: #698354;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5211",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 95.077,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39563,
    "c": 0.10227,
    "h": 135.2
  },
  "luminance": 0.06611
}

Semantic roles & 50–950 ramp

primary
#2C5211
secondary
#67348B
accent
#3FE9A2
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2C5211

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

Preview Lab → · Contrast checker → · Palette generator →

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