#0C4D17#0C4D17

#0C4D17 is a dark, moderate green. Relative luminance 0.054; OKLCH L 36.8% C 0.106 H 145.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#0C4D17
RGBrgb(12, 77, 23)
HSLhsl(130, 73%, 17%)
HSVhsv(130, 84%, 30%)
CMYKcmyk(84.4%, 0%, 70.1%, 69.8%)
CIE-LABlab(27.97, -32.23, 25.77)
CIE-LCHlch(27.97, 41.27, 141.36°)
OKLaboklab(36.84% -0.0869 0.0601)
OKLCHoklch(36.84% 0.106 145.4)
XYZxyz(2.9599, 5.4474, 1.7059)
Luminance0.0545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4D17 #4D0C42
analogous
#214D0C #0C4D17 #0C4D38
triadic
#0C4D17 #170C4D #4D170C
tetradic
#0C4D17 #0C214D #4D0C42 #4D380C
square
#0C4D17 #0C214D #4D0C42 #4D380C
split-complementary
#0C4D17 #380C4D #4D0C21
monochromatic
#041A08 #041A08 #0C4D17 #148227 #1DB737

Accessibility & contrast

On white

10.05
#0C4D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#0C4D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4D17
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4D17#FFFFFF#000000##FFFFFF
##0C4D171.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4511
Deuteranopia (green-blind)
#47401C
Tritanopia (blue-blind)
#004B42
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #0c4d17;
/* rgb */ color: rgb(12, 77, 23);
/* oklch */ color: oklch(36.8% 0.106 145.4);
Tailwind
colors: {
  custom: {
    50: '#588056',
    500: '#0c4d17',
    950: '#000000',
  },
}
SCSS
$custom: #0c4d17;
$custom-light: #588056;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4d17",
  "rgb": {
    "r": 12,
    "g": 77,
    "b": 23
  },
  "hsl": {
    "h": 130.154,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36843,
    "c": 0.10567,
    "h": 145.4
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#0C4D17
secondary
#892C79
accent
#38D1F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4D17

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

Preview Lab → · Contrast checker → · Palette generator →

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