#2C5412#2C5412

#2C5412 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.2% C 0.104 H 135.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2C5412
RGBrgb(44, 84, 18)
HSLhsl(96, 65%, 20%)
HSVhsv(96, 79%, 33%)
CMYKcmyk(47.6%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.62, -26.86, 32.32)
CIE-LCHlch(31.62, 42.02, 129.73°)
OKLaboklab(40.16% -0.0748 0.0729)
OKLCHoklch(40.16% 0.104 135.8)
XYZxyz(4.3181, 6.9195, 1.6802)
Luminance0.0692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5412 #3A1254
analogous
#4D5412 #2C5412 #125419
triadic
#2C5412 #122C54 #54122C
tetradic
#2C5412 #124D54 #3A1254 #541912
square
#2C5412 #124D54 #3A1254 #541912
split-complementary
#2C5412 #191254 #54124D
monochromatic
#0D1905 #122207 #2C5412 #46861D #61B928

Accessibility & contrast

On white

8.81
#2C5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2C5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5412
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5412#FFFFFF#000000##FFFFFF
##2C54121.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#2B5147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c5412;
/* rgb */ color: rgb(44, 84, 18);
/* oklch */ color: oklch(40.2% 0.104 135.8);
Tailwind
colors: {
  custom: {
    50: '#698455',
    500: '#2c5412',
    950: '#000000',
  },
}
SCSS
$custom: #2c5412;
$custom-light: #698455;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5412",
  "rgb": {
    "r": 44,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 96.364,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40156,
    "c": 0.10443,
    "h": 135.8
  },
  "luminance": 0.0692
}

Semantic roles & 50–950 ramp

primary
#2C5412
secondary
#6A358D
accent
#40E8A6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C5412

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

Preview Lab → · Contrast checker → · Palette generator →

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