#0C4F12#0C4F12

#0C4F12 is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.4% C 0.112 H 143.9°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#0C4F12
RGBrgb(12, 79, 18)
HSLhsl(125, 74%, 18%)
HSVhsv(125, 85%, 31%)
CMYKcmyk(84.8%, 0%, 77.2%, 69%)
CIE-LABlab(28.68, -33.57, 28.94)
CIE-LCHlch(28.68, 44.32, 139.24°)
OKLaboklab(37.41% -0.0908 0.0661)
OKLCHoklch(37.41% 0.112 143.9)
XYZxyz(3.0566, 5.7134, 1.5139)
Luminance0.0571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F12 #4F0C49
analogous
#274F0C #0C4F12 #0C4F33
triadic
#0C4F12 #120C4F #4F120C
tetradic
#0C4F12 #0C274F #4F0C49 #4F330C
square
#0C4F12 #0C274F #4F0C49 #4F330C
split-complementary
#0C4F12 #330C4F #4F0C27
monochromatic
#041B06 #041B06 #0C4F12 #14841E #1CB92A

Accessibility & contrast

On white

9.80
#0C4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#0C4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F12
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F12#FFFFFF#000000##FFFFFF
##0C4F121.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#494218
Tritanopia (blue-blind)
#004D43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f12;
/* rgb */ color: rgb(12, 79, 18);
/* oklch */ color: oklch(37.4% 0.112 143.9);
Tailwind
colors: {
  custom: {
    50: '#598154',
    500: '#0c4f12',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f12;
$custom-light: #598154;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f12",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 125.373,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37412,
    "c": 0.11233,
    "h": 143.9
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#0C4F12
secondary
#8B2C82
accent
#38E0F0
background
#F5F7F4
surface
#E9EEE8
border
#C5C9C4
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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