#2C5517#2C5517

#2C5517 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.5% C 0.102 H 136.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2C5517
RGBrgb(44, 85, 23)
HSLhsl(100, 57%, 21%)
HSVhsv(100, 73%, 33%)
CMYKcmyk(48.2%, 0%, 72.9%, 66.7%)
CIE-LABlab(32.02, -26.89, 30.51)
CIE-LCHlch(32.02, 40.66, 131.39°)
OKLaboklab(40.49% -0.0745 0.0698)
OKLCHoklch(40.49% 0.102 136.8)
XYZxyz(4.4417, 7.0941, 1.9457)
Luminance0.0709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5517 #401755
analogous
#4B5517 #2C5517 #175521
triadic
#2C5517 #172C55 #55172C
tetradic
#2C5517 #174B55 #401755 #552117
square
#2C5517 #174B55 #401755 #552117
split-complementary
#2C5517 #211755 #55174B
monochromatic
#0C1807 #13250A #2C5517 #458524 #5EB531

Accessibility & contrast

On white

8.68
#2C5517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2C5517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5517
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5517#FFFFFF#000000##FFFFFF
##2C55171.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0E
Deuteranopia (green-blind)
#534A1C
Tritanopia (blue-blind)
#2A5248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c5517;
/* rgb */ color: rgb(44, 85, 23);
/* oklch */ color: oklch(40.5% 0.102 136.8);
Tailwind
colors: {
  custom: {
    50: '#698558',
    500: '#2c5517',
    950: '#000000',
  },
}
SCSS
$custom: #2c5517;
$custom-light: #698558;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5517",
  "rgb": {
    "r": 44,
    "g": 85,
    "b": 23
  },
  "hsl": {
    "h": 99.677,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40495,
    "c": 0.10209,
    "h": 136.8
  },
  "luminance": 0.07094
}

Semantic roles & 50–950 ramp

primary
#2C5517
secondary
#713C8C
accent
#47E1AD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5517

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

Preview Lab → · Contrast checker → · Palette generator →

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