#0C4112#0C4112

#0C4112 is a dark, moderate green. Relative luminance 0.039; OKLCH L 33.0% C 0.093 H 144.7°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#0C4112
RGBrgb(12, 65, 18)
HSLhsl(127, 69%, 15%)
HSVhsv(127, 82%, 25%)
CMYKcmyk(81.5%, 0%, 72.3%, 74.5%)
CIE-LABlab(23.35, -28.16, 23.18)
CIE-LCHlch(23.35, 36.48, 140.54°)
OKLaboklab(32.99% -0.0761 0.054)
OKLCHoklch(32.99% 0.093 144.7)
XYZxyz(2.1510, 3.9022, 1.2120)
Luminance0.0390 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4112 #410C3B
analogous
#21410C #0C4112 #0C412C
triadic
#0C4112 #120C41 #41120C
tetradic
#0C4112 #0C2141 #410C3B #412C0C
square
#0C4112 #0C2141 #410C3B #412C0C
split-complementary
#0C4112 #2C0C41 #410C21
monochromatic
#051A07 #051A07 #0C4112 #167520 #1FA82F

Accessibility & contrast

On white

11.80
#0C4112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#0C4112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4112
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4112#FFFFFF#000000##FFFFFF
##0C41121.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A0C
Deuteranopia (green-blind)
#3C3616
Tritanopia (blue-blind)
#003F37
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c4112;
/* rgb */ color: rgb(12, 65, 18);
/* oklch */ color: oklch(33.0% 0.093 144.7);
Tailwind
colors: {
  custom: {
    50: '#557652',
    500: '#0c4112',
    950: '#000000',
  },
}
SCSS
$custom: #0c4112;
$custom-light: #557652;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4112",
  "rgb": {
    "r": 12,
    "g": 65,
    "b": 18
  },
  "hsl": {
    "h": 126.792,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.32986,
    "c": 0.09332,
    "h": 144.7
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#0C4112
secondary
#7D2C74
accent
#3CD8EC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030802
muted
#787B78

Preview Lab

Preview with #0C4112

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

Preview Lab → · Contrast checker → · Palette generator →

#0C4112 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva