#0C4806#0C4806

#0C4806 is a dark, moderate green. Relative luminance 0.047; OKLCH L 35.1% C 0.111 H 141.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#0C4806
RGBrgb(12, 72, 6)
HSLhsl(115, 85%, 15%)
HSVhsv(115, 92%, 28%)
CMYKcmyk(83.3%, 0%, 91.7%, 71.8%)
CIE-LABlab(25.94, -32.04, 31.10)
CIE-LCHlch(25.94, 44.65, 135.86°)
OKLaboklab(35.11% -0.0873 0.0687)
OKLCHoklch(35.11% 0.111 141.8)
XYZxyz(2.5017, 4.7258, 0.9526)
Luminance0.0473 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4806 #420648
analogous
#2D4806 #0C4806 #064821
triadic
#0C4806 #060C48 #48060C
tetradic
#0C4806 #062D48 #420648 #482106
square
#0C4806 #062D48 #420648 #482106
split-complementary
#0C4806 #210648 #48062D
monochromatic
#051C02 #051C02 #0C4806 #15800B #1FB90F

Accessibility & contrast

On white

10.80
#0C4806 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4806
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4806#FFFFFF#000000##FFFFFF
##0C48061.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4000
Deuteranopia (green-blind)
#433C0E
Tritanopia (blue-blind)
#00453C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #0c4806;
/* rgb */ color: rgb(12, 72, 6);
/* oklch */ color: oklch(35.1% 0.111 141.8);
Tailwind
colors: {
  custom: {
    50: '#587c4d',
    500: '#0c4806',
    950: '#000000',
  },
}
SCSS
$custom: #0c4806;
$custom-light: #587c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4806",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 6
  },
  "hsl": {
    "h": 114.545,
    "s": 84.615,
    "l": 15.294
  },
  "oklch": {
    "l": 0.35109,
    "c": 0.11107,
    "h": 141.8
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#0C4806
secondary
#7E2387
accent
#2DFBE8
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040901
muted
#797B77

Preview Lab

Preview with #0C4806

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

Preview Lab → · Contrast checker → · Palette generator →

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