#0C4812#0C4812

#0C4812 is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.2% C 0.103 H 144.3°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#0C4812
RGBrgb(12, 72, 18)
HSLhsl(126, 71%, 16%)
HSVhsv(126, 83%, 28%)
CMYKcmyk(83.3%, 0%, 75%, 71.8%)
CIE-LABlab(26.03, -30.93, 26.12)
CIE-LCHlch(26.03, 40.49, 139.82°)
OKLaboklab(35.21% -0.0836 0.0602)
OKLCHoklch(35.21% 0.103 144.3)
XYZxyz(2.5780, 4.7563, 1.3543)
Luminance0.0476 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4812 #480C42
analogous
#24480C #0C4812 #0C4830
triadic
#0C4812 #120C48 #48120C
tetradic
#0C4812 #0C2448 #480C42 #48300C
square
#0C4812 #0C2448 #480C42 #48300C
split-complementary
#0C4812 #300C48 #480C24
monochromatic
#041A07 #041A07 #0C4812 #157C1F #1DB12C

Accessibility & contrast

On white

10.76
#0C4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#0C4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4812
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4812#FFFFFF#000000##FFFFFF
##0C48121.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400B
Deuteranopia (green-blind)
#433C17
Tritanopia (blue-blind)
#00463D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4812;
/* rgb */ color: rgb(12, 72, 18);
/* oklch */ color: oklch(35.2% 0.103 144.3);
Tailwind
colors: {
  custom: {
    50: '#577c53',
    500: '#0c4812',
    950: '#000000',
  },
}
SCSS
$custom: #0c4812;
$custom-light: #577c53;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4812",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 126,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35212,
    "c": 0.10305,
    "h": 144.3
  },
  "luminance": 0.04757
}

Semantic roles & 50–950 ramp

primary
#0C4812
secondary
#842C7B
accent
#3ADCEE
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040902
muted
#797B78

Preview Lab

Preview with #0C4812

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

Preview Lab → · Contrast checker → · Palette generator →

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