#0C4C17#0C4C17

#0C4C17 is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.5% C 0.104 H 145.4°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#0C4C17
RGBrgb(12, 76, 23)
HSLhsl(130, 73%, 17%)
HSVhsv(130, 84%, 30%)
CMYKcmyk(84.2%, 0%, 69.7%, 70.2%)
CIE-LABlab(27.60, -31.85, 25.35)
CIE-LCHlch(27.60, 40.70, 141.48°)
OKLaboklab(36.53% -0.0859 0.0592)
OKLCHoklch(36.53% 0.104 145.4)
XYZxyz(2.8905, 5.3086, 1.6828)
Luminance0.0531 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4C17 #4C0C41
analogous
#214C0C #0C4C17 #0C4C37
triadic
#0C4C17 #170C4C #4C170C
tetradic
#0C4C17 #0C214C #4C0C41 #4C370C
square
#0C4C17 #0C214C #4C0C41 #4C370C
split-complementary
#0C4C17 #370C4C #4C0C21
monochromatic
#041A08 #041A08 #0C4C17 #148127 #1DB637

Accessibility & contrast

On white

10.19
#0C4C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#0C4C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4C17
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4C17#FFFFFF#000000##FFFFFF
##0C4C171.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4411
Deuteranopia (green-blind)
#463F1C
Tritanopia (blue-blind)
#004A41
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #0c4c17;
/* rgb */ color: rgb(12, 76, 23);
/* oklch */ color: oklch(36.5% 0.104 145.4);
Tailwind
colors: {
  custom: {
    50: '#587f56',
    500: '#0c4c17',
    950: '#000000',
  },
}
SCSS
$custom: #0c4c17;
$custom-light: #587f56;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4c17",
  "rgb": {
    "r": 12,
    "g": 76,
    "b": 23
  },
  "hsl": {
    "h": 130.313,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.3653,
    "c": 0.1043,
    "h": 145.4
  },
  "luminance": 0.05309
}

Semantic roles & 50–950 ramp

primary
#0C4C17
secondary
#882C78
accent
#38D0EF
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4C17

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

Preview Lab → · Contrast checker → · Palette generator →

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