#2C5212#2C5212

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

Color values

HEX#2C5212
RGBrgb(44, 82, 18)
HSLhsl(96, 64%, 20%)
HSVhsv(96, 78%, 32%)
CMYKcmyk(46.3%, 0%, 78%, 67.8%)
CIE-LABlab(30.91, -25.92, 31.60)
CIE-LCHlch(30.91, 40.87, 129.37°)
OKLaboklab(39.57% -0.0723 0.0713)
OKLCHoklch(39.57% 0.102 135.4)
XYZxyz(4.1651, 6.6135, 1.6292)
Luminance0.0661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5212 #381252
analogous
#4C5212 #2C5212 #125218
triadic
#2C5212 #122C52 #52122C
tetradic
#2C5212 #124C52 #381252 #521812
square
#2C5212 #124C52 #381252 #521812
split-complementary
#2C5212 #181252 #52124C
monochromatic
#0D1906 #112007 #2C5212 #47841D #62B628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C5212#FFFFFF#000000##FFFFFF
##2C52121.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)
#554B07
Deuteranopia (green-blind)
#504818
Tritanopia (blue-blind)
#2B4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c5212;
/* rgb */ color: rgb(44, 82, 18);
/* oklch */ color: oklch(39.6% 0.102 135.4);
Tailwind
colors: {
  custom: {
    50: '#698354',
    500: '#2c5212',
    950: '#000000',
  },
}
SCSS
$custom: #2c5212;
$custom-light: #698354;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5212",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 95.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39572,
    "c": 0.10156,
    "h": 135.4
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#2C5212
secondary
#68358B
accent
#41E7A3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2C5212

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

Preview Lab → · Contrast checker → · Palette generator →

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