#2C5012#2C5012

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

Color values

HEX#2C5012
RGBrgb(44, 80, 18)
HSLhsl(95, 63%, 19%)
HSVhsv(95, 78%, 31%)
CMYKcmyk(45%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.20, -24.97, 30.87)
CIE-LCHlch(30.20, 39.70, 128.97°)
OKLaboklab(38.99% -0.0697 0.0698)
OKLCHoklch(38.99% 0.099 134.9)
XYZxyz(4.0165, 6.3163, 1.5797)
Luminance0.0632 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5012 #361250
analogous
#4B5012 #2C5012 #125017
triadic
#2C5012 #122C50 #50122C
tetradic
#2C5012 #124B50 #361250 #501712
square
#2C5012 #124B50 #361250 #501712
split-complementary
#2C5012 #171250 #50124B
monochromatic
#0E1906 #111E07 #2C5012 #47821D #63B428

Accessibility & contrast

On white

9.28
#2C5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2C5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5012
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5012#FFFFFF#000000##FFFFFF
##2C50121.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c5012;
/* rgb */ color: rgb(44, 80, 18);
/* oklch */ color: oklch(39.0% 0.099 134.9);
Tailwind
colors: {
  custom: {
    50: '#698154',
    500: '#2c5012',
    950: '#000000',
  },
}
SCSS
$custom: #2c5012;
$custom-light: #698154;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5012",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 94.839,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38987,
    "c": 0.09865,
    "h": 134.9
  },
  "luminance": 0.06316
}

Semantic roles & 50–950 ramp

primary
#2C5012
secondary
#663589
accent
#41E6A1
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C5012

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

Preview Lab → · Contrast checker → · Palette generator →

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