#0C4E12#0C4E12

#0C4E12 is a dark, moderate green. Relative luminance 0.056; OKLCH L 37.1% C 0.111 H 144.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#0C4E12
RGBrgb(12, 78, 18)
HSLhsl(125, 73%, 18%)
HSVhsv(125, 85%, 31%)
CMYKcmyk(84.6%, 0%, 76.9%, 69.4%)
CIE-LABlab(28.30, -33.20, 28.54)
CIE-LCHlch(28.30, 43.79, 139.32°)
OKLaboklab(37.1% -0.0898 0.0653)
OKLCHoklch(37.1% 0.111 144)
XYZxyz(2.9850, 5.5703, 1.4900)
Luminance0.0557 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E12 #4E0C48
analogous
#274E0C #0C4E12 #0C4E33
triadic
#0C4E12 #120C4E #4E120C
tetradic
#0C4E12 #0C274E #4E0C48 #4E330C
square
#0C4E12 #0C274E #4E0C48 #4E330C
split-complementary
#0C4E12 #330C4E #4E0C27
monochromatic
#041B06 #041B06 #0C4E12 #14831E #1CB82A

Accessibility & contrast

On white

9.93
#0C4E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#0C4E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4E12
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E12#FFFFFF#000000##FFFFFF
##0C4E121.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504609
Deuteranopia (green-blind)
#484118
Tritanopia (blue-blind)
#004C42
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4e12;
/* rgb */ color: rgb(12, 78, 18);
/* oklch */ color: oklch(37.1% 0.111 144.0);
Tailwind
colors: {
  custom: {
    50: '#598054',
    500: '#0c4e12',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e12;
$custom-light: #598054;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e12",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 125.455,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.371,
    "c": 0.11103,
    "h": 144
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#0C4E12
secondary
#8A2C81
accent
#38DFF0
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4E12

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

Preview Lab → · Contrast checker → · Palette generator →

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