#2C5217#2C5217

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

Color values

HEX#2C5217
RGBrgb(44, 82, 23)
HSLhsl(99, 56%, 21%)
HSVhsv(99, 72%, 32%)
CMYKcmyk(46.3%, 0%, 72%, 67.8%)
CIE-LABlab(30.95, -25.47, 29.37)
CIE-LCHlch(30.95, 38.87, 130.93°)
OKLaboklab(39.62% -0.0706 0.0674)
OKLCHoklch(39.62% 0.098 136.3)
XYZxyz(4.2105, 6.6317, 1.8686)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5217 #3D1752
analogous
#495217 #2C5217 #17521F
triadic
#2C5217 #172C52 #52172C
tetradic
#2C5217 #174952 #3D1752 #521F17
square
#2C5217 #174952 #3D1752 #521F17
split-complementary
#2C5217 #1F1752 #521749
monochromatic
#0D1807 #12220A #2C5217 #468224 #5FB232

Accessibility & contrast

On white

9.03
#2C5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C5217
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5217#FFFFFF#000000##FFFFFF
##2C52171.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c5217;
/* rgb */ color: rgb(44, 82, 23);
/* oklch */ color: oklch(39.6% 0.098 136.3);
Tailwind
colors: {
  custom: {
    50: '#698357',
    500: '#2c5217',
    950: '#000000',
  },
}
SCSS
$custom: #2c5217;
$custom-light: #698357;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5217",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 98.644,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39621,
    "c": 0.09764,
    "h": 136.3
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#2C5217
secondary
#6E3C89
accent
#48DFAA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C5217

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

Preview Lab → · Contrast checker → · Palette generator →

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