#2C5215#2C5215

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

Color values

HEX#2C5215
RGBrgb(44, 82, 21)
HSLhsl(97, 59%, 20%)
HSVhsv(97, 74%, 32%)
CMYKcmyk(46.3%, 0%, 74.4%, 67.8%)
CIE-LABlab(30.94, -25.66, 30.29)
CIE-LCHlch(30.94, 39.70, 130.27°)
OKLaboklab(39.6% -0.0713 0.0691)
OKLCHoklch(39.6% 0.099 135.9)
XYZxyz(4.1913, 6.6240, 1.7670)
Luminance0.0662 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5215 #3B1552
analogous
#4A5215 #2C5215 #15521C
triadic
#2C5215 #152C52 #52152C
tetradic
#2C5215 #154A52 #3B1552 #521C15
square
#2C5215 #154A52 #3B1552 #521C15
split-complementary
#2C5215 #1C1552 #52154A
monochromatic
#0D1806 #122109 #2C5215 #468321 #60B32E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C5215#FFFFFF#000000##FFFFFF
##2C52151.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0C
Deuteranopia (green-blind)
#50481A
Tritanopia (blue-blind)
#2B4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c5215;
/* rgb */ color: rgb(44, 82, 21);
/* oklch */ color: oklch(39.6% 0.099 135.9);
Tailwind
colors: {
  custom: {
    50: '#698356',
    500: '#2c5215',
    950: '#000000',
  },
}
SCSS
$custom: #2c5215;
$custom-light: #698356;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5215",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 97.377,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.396,
    "c": 0.09928,
    "h": 135.9
  },
  "luminance": 0.06624
}

Semantic roles & 50–950 ramp

primary
#2C5215
secondary
#6B398A
accent
#45E2A7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C5215

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

Preview Lab → · Contrast checker → · Palette generator →

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