#2C5017#2C5017

#2C5017 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.095 H 135.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2C5017
RGBrgb(44, 80, 23)
HSLhsl(98, 55%, 20%)
HSVhsv(98, 71%, 31%)
CMYKcmyk(45%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.24, -24.50, 28.60)
CIE-LCHlch(30.24, 37.66, 130.59°)
OKLaboklab(39.04% -0.068 0.0658)
OKLCHoklch(39.04% 0.095 135.9)
XYZxyz(4.0619, 6.3344, 1.8191)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5017 #3B1750
analogous
#485017 #2C5017 #17501F
triadic
#2C5017 #172C50 #50172C
tetradic
#2C5017 #174850 #3B1750 #501F17
square
#2C5017 #174850 #3B1750 #501F17
split-complementary
#2C5017 #1F1750 #501748
monochromatic
#0D1807 #122009 #2C5017 #468025 #60AF32

Accessibility & contrast

On white

9.26
#2C5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2C5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5017
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5017#FFFFFF#000000##FFFFFF
##2C50171.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#2B4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2c5017;
/* rgb */ color: rgb(44, 80, 23);
/* oklch */ color: oklch(39.0% 0.095 135.9);
Tailwind
colors: {
  custom: {
    50: '#688157',
    500: '#2c5017',
    950: '#000000',
  },
}
SCSS
$custom: #2c5017;
$custom-light: #688157;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5017",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 97.895,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39038,
    "c": 0.09463,
    "h": 135.9
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#2C5017
secondary
#6B3C87
accent
#49DFA8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C5017

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

Preview Lab → · Contrast checker → · Palette generator →

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