#2C4817#2C4817

#2C4817 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.082 H 134.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2C4817
RGBrgb(44, 72, 23)
HSLhsl(94, 52%, 19%)
HSVhsv(94, 68%, 28%)
CMYKcmyk(38.9%, 0%, 68.1%, 71.8%)
CIE-LABlab(27.39, -20.49, 25.46)
CIE-LCHlch(27.39, 32.68, 128.83°)
OKLaboklab(36.71% -0.0571 0.0591)
OKLCHoklch(36.71% 0.082 134)
XYZxyz(3.5107, 5.2319, 1.6353)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4817 #331748
analogous
#444817 #2C4817 #17481A
triadic
#2C4817 #172C48 #48172C
tetradic
#2C4817 #174448 #331748 #481A17
square
#2C4817 #174448 #331748 #481A17
split-complementary
#2C4817 #1A1748 #481744
monochromatic
#0E1707 #101A08 #2C4817 #487626 #65A535

Accessibility & contrast

On white

10.26
#2C4817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2C4817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4817
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4817#FFFFFF#000000##FFFFFF
##2C48171.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4211
Deuteranopia (green-blind)
#47401B
Tritanopia (blue-blind)
#2C453E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c4817;
/* rgb */ color: rgb(44, 72, 23);
/* oklch */ color: oklch(36.7% 0.082 134.0);
Tailwind
colors: {
  custom: {
    50: '#677b56',
    500: '#2c4817',
    950: '#000000',
  },
}
SCSS
$custom: #2c4817;
$custom-light: #677b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4817",
  "rgb": {
    "r": 44,
    "g": 72,
    "b": 23
  },
  "hsl": {
    "h": 94.286,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.36706,
    "c": 0.08218,
    "h": 134
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#2C4817
secondary
#623C7F
accent
#4DDB9E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2C4817

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

Preview Lab → · Contrast checker → · Palette generator →

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