#2C5312#2C5312

#2C5312 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 39.9% C 0.103 H 135.6°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2C5312
RGBrgb(44, 83, 18)
HSLhsl(96, 64%, 20%)
HSVhsv(96, 78%, 33%)
CMYKcmyk(47%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.27, -26.39, 31.96)
CIE-LCHlch(31.27, 41.45, 129.55°)
OKLaboklab(39.86% -0.0735 0.0721)
OKLCHoklch(39.86% 0.103 135.6)
XYZxyz(4.2410, 6.7654, 1.6545)
Luminance0.0677 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5312 #391253
analogous
#4D5312 #2C5312 #125319
triadic
#2C5312 #122C53 #53122C
tetradic
#2C5312 #124D53 #391253 #531912
square
#2C5312 #124D53 #391253 #531912
split-complementary
#2C5312 #191253 #53124D
monochromatic
#0D1905 #112107 #2C5312 #47851D #61B828

Accessibility & contrast

On white

8.92
#2C5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2C5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5312
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5312#FFFFFF#000000##FFFFFF
##2C53121.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#2B5046
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c5312;
/* rgb */ color: rgb(44, 83, 18);
/* oklch */ color: oklch(39.9% 0.103 135.6);
Tailwind
colors: {
  custom: {
    50: '#698455',
    500: '#2c5312',
    950: '#000000',
  },
}
SCSS
$custom: #2c5312;
$custom-light: #698455;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5312",
  "rgb": {
    "r": 44,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 96,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.103,
    "h": 135.6
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#2C5312
secondary
#69358C
accent
#40E7A5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5312

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

Preview Lab → · Contrast checker → · Palette generator →

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