#0C4C12#0C4C12

#0C4C12 is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.5% C 0.108 H 144.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#0C4C12
RGBrgb(12, 76, 18)
HSLhsl(126, 73%, 17%)
HSVhsv(126, 84%, 30%)
CMYKcmyk(84.2%, 0%, 76.3%, 70.2%)
CIE-LABlab(27.55, -32.45, 27.75)
CIE-LCHlch(27.55, 42.70, 139.47°)
OKLaboklab(36.47% -0.0878 0.0636)
OKLCHoklch(36.47% 0.108 144.1)
XYZxyz(2.8451, 5.2904, 1.4434)
Luminance0.0529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4C12 #4C0C46
analogous
#264C0C #0C4C12 #0C4C32
triadic
#0C4C12 #120C4C #4C120C
tetradic
#0C4C12 #0C264C #4C0C46 #4C320C
square
#0C4C12 #0C264C #4C0C46 #4C320C
split-complementary
#0C4C12 #320C4C #4C0C26
monochromatic
#041A06 #041A06 #0C4C12 #14811F #1DB62B

Accessibility & contrast

On white

10.20
#0C4C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#0C4C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4C12
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4C12#FFFFFF#000000##FFFFFF
##0C4C121.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4409
Deuteranopia (green-blind)
#473F18
Tritanopia (blue-blind)
#004A40
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #0c4c12;
/* rgb */ color: rgb(12, 76, 18);
/* oklch */ color: oklch(36.5% 0.108 144.1);
Tailwind
colors: {
  custom: {
    50: '#587f53',
    500: '#0c4c12',
    950: '#000000',
  },
}
SCSS
$custom: #0c4c12;
$custom-light: #587f53;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4c12",
  "rgb": {
    "r": 12,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 125.625,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36473,
    "c": 0.10841,
    "h": 144.1
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#0C4C12
secondary
#882C7F
accent
#38DEEF
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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