#2C5F12#2C5F12

#2C5F12 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.4% C 0.120 H 137.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#2C5F12
RGBrgb(44, 95, 18)
HSLhsl(100, 68%, 22%)
HSVhsv(100, 81%, 37%)
CMYKcmyk(53.7%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.52, -31.79, 36.18)
CIE-LCHlch(35.52, 48.16, 131.31°)
OKLaboklab(43.36% -0.0881 0.0809)
OKLCHoklch(43.36% 0.12 137.4)
XYZxyz(5.2399, 8.7632, 1.9875)
Luminance0.0876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5F12 #45125F
analogous
#535F12 #2C5F12 #125F1E
triadic
#2C5F12 #122C5F #5F122C
tetradic
#2C5F12 #12535F #45125F #5F1E12
square
#2C5F12 #12535F #45125F #5F1E12
split-complementary
#2C5F12 #1E125F #5F1253
monochromatic
#0C1A05 #142C08 #2C5F12 #44921C #5CC625

Accessibility & contrast

On white

7.63
#2C5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2C5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5F12
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5F12#FFFFFF#000000##FFFFFF
##2C5F121.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#295B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c5f12;
/* rgb */ color: rgb(44, 95, 18);
/* oklch */ color: oklch(43.4% 0.120 137.4);
Tailwind
colors: {
  custom: {
    50: '#6b8d56',
    500: '#2c5f12',
    950: '#000000',
  },
}
SCSS
$custom: #2c5f12;
$custom-light: #6b8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5f12",
  "rgb": {
    "r": 44,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 99.74,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43361,
    "c": 0.11963,
    "h": 137.4
  },
  "luminance": 0.08764
}

Semantic roles & 50–950 ramp

primary
#2C5F12
secondary
#763697
accent
#3DEBB0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2C5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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