#2C5218#2C5218

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

Color values

HEX#2C5218
RGBrgb(44, 82, 24)
HSLhsl(99, 55%, 21%)
HSVhsv(99, 71%, 32%)
CMYKcmyk(46.3%, 0%, 70.7%, 67.8%)
CIE-LABlab(30.96, -25.37, 28.89)
CIE-LCHlch(30.96, 38.45, 131.28°)
OKLaboklab(39.63% -0.0703 0.0666)
OKLCHoklch(39.63% 0.097 136.6)
XYZxyz(4.2208, 6.6358, 1.9224)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5218 #3E1852
analogous
#495218 #2C5218 #185221
triadic
#2C5218 #182C52 #52182C
tetradic
#2C5218 #184952 #3E1852 #522118
square
#2C5218 #184952 #3E1852 #522118
split-complementary
#2C5218 #211852 #521849
monochromatic
#0D1807 #13230A #2C5218 #458126 #5FB134

Accessibility & contrast

On white

9.02
#2C5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2C5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5218
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5218#FFFFFF#000000##FFFFFF
##2C52181.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#50481D
Tritanopia (blue-blind)
#2A4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c5218;
/* rgb */ color: rgb(44, 82, 24);
/* oklch */ color: oklch(39.6% 0.097 136.6);
Tailwind
colors: {
  custom: {
    50: '#698358',
    500: '#2c5218',
    950: '#000000',
  },
}
SCSS
$custom: #2c5218;
$custom-light: #698358;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5218",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 99.31,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39632,
    "c": 0.09679,
    "h": 136.6
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#2C5218
secondary
#6F3D89
accent
#4ADEAB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C5218

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

Preview Lab → · Contrast checker → · Palette generator →

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