#0C4512#0C4512

#0C4512 is a dark, moderate green. Relative luminance 0.044; OKLCH L 34.3% C 0.099 H 144.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#0C4512
RGBrgb(12, 69, 18)
HSLhsl(126, 70%, 16%)
HSVhsv(126, 83%, 27%)
CMYKcmyk(82.6%, 0%, 73.9%, 72.9%)
CIE-LABlab(24.88, -29.76, 24.88)
CIE-LCHlch(24.88, 38.79, 140.11°)
OKLaboklab(34.26% -0.0805 0.0576)
OKLCHoklch(34.26% 0.099 144.4)
XYZxyz(2.3888, 4.3778, 1.2913)
Luminance0.0438 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4512 #450C3F
analogous
#22450C #0C4512 #0C452E
triadic
#0C4512 #120C45 #45120C
tetradic
#0C4512 #0C2245 #450C3F #452E0C
square
#0C4512 #0C2245 #450C3F #452E0C
split-complementary
#0C4512 #2E0C45 #450C22
monochromatic
#051A07 #051A07 #0C4512 #157920 #1EAD2D

Accessibility & contrast

On white

11.20
#0C4512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#0C4512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4512
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4512#FFFFFF#000000##FFFFFF
##0C45121.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463E0B
Deuteranopia (green-blind)
#403917
Tritanopia (blue-blind)
#00433A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #0c4512;
/* rgb */ color: rgb(12, 69, 18);
/* oklch */ color: oklch(34.3% 0.099 144.4);
Tailwind
colors: {
  custom: {
    50: '#567952',
    500: '#0c4512',
    950: '#000000',
  },
}
SCSS
$custom: #0c4512;
$custom-light: #567952;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4512",
  "rgb": {
    "r": 12,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 126.316,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.09893,
    "h": 144.4
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#0C4512
secondary
#812C78
accent
#3BDAED
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #0C4512

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

Preview Lab → · Contrast checker → · Palette generator →

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