#0C4012#0C4012

#0C4012 is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.7% C 0.092 H 144.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#0C4012
RGBrgb(12, 64, 18)
HSLhsl(127, 68%, 15%)
HSVhsv(127, 81%, 25%)
CMYKcmyk(81.2%, 0%, 71.9%, 74.9%)
CIE-LABlab(22.96, -27.76, 22.75)
CIE-LCHlch(22.96, 35.89, 140.66°)
OKLaboklab(32.67% -0.075 0.0531)
OKLCHoklch(32.67% 0.092 144.7)
XYZxyz(2.0941, 3.7884, 1.1930)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4012 #400C3A
analogous
#20400C #0C4012 #0C402C
triadic
#0C4012 #120C40 #40120C
tetradic
#0C4012 #0C2040 #400C3A #402C0C
square
#0C4012 #0C2040 #400C3A #402C0C
split-complementary
#0C4012 #2C0C40 #400C20
monochromatic
#051A07 #051A07 #0C4012 #167420 #1FA72F

Accessibility & contrast

On white

11.95
#0C4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#0C4012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4012
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4012#FFFFFF#000000##FFFFFF
##0C40121.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41390D
Deuteranopia (green-blind)
#3B3516
Tritanopia (blue-blind)
#003E36
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #0c4012;
/* rgb */ color: rgb(12, 64, 18);
/* oklch */ color: oklch(32.7% 0.092 144.7);
Tailwind
colors: {
  custom: {
    50: '#547552',
    500: '#0c4012',
    950: '#000000',
  },
}
SCSS
$custom: #0c4012;
$custom-light: #547552;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4012",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 126.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32666,
    "c": 0.09189,
    "h": 144.7
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#0C4012
secondary
#7C2C73
accent
#3DD7EB
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030802
muted
#787B78

Preview Lab

Preview with #0C4012

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

Preview Lab → · Contrast checker → · Palette generator →

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