#0C4917#0C4917

#0C4917 is a dark, moderate green. Relative luminance 0.049; OKLCH L 35.6% C 0.100 H 145.7°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#0C4917
RGBrgb(12, 73, 23)
HSLhsl(131, 72%, 17%)
HSVhsv(131, 84%, 29%)
CMYKcmyk(83.6%, 0%, 68.5%, 71.4%)
CIE-LABlab(26.46, -30.68, 24.07)
CIE-LCHlch(26.46, 38.99, 141.89°)
OKLaboklab(35.59% -0.0827 0.0564)
OKLCHoklch(35.59% 0.1 145.7)
XYZxyz(2.6886, 4.9048, 1.6155)
Luminance0.0491 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4917 #490C3E
analogous
#20490C #0C4917 #0C4936
triadic
#0C4917 #170C49 #49170C
tetradic
#0C4917 #0C2049 #490C3E #49360C
square
#0C4917 #0C2049 #490C3E #49360C
split-complementary
#0C4917 #360C49 #490C20
monochromatic
#041A08 #041A08 #0C4917 #157E28 #1DB238

Accessibility & contrast

On white

10.60
#0C4917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#0C4917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4917
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4917#FFFFFF#000000##FFFFFF
##0C49171.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4111
Deuteranopia (green-blind)
#433D1B
Tritanopia (blue-blind)
#00473E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #0c4917;
/* rgb */ color: rgb(12, 73, 23);
/* oklch */ color: oklch(35.6% 0.100 145.7);
Tailwind
colors: {
  custom: {
    50: '#577c56',
    500: '#0c4917',
    950: '#000000',
  },
}
SCSS
$custom: #0c4917;
$custom-light: #577c56;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4917",
  "rgb": {
    "r": 12,
    "g": 73,
    "b": 23
  },
  "hsl": {
    "h": 130.82,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.10013,
    "h": 145.7
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#0C4917
secondary
#852C75
accent
#39CEEE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040903
muted
#797B78

Preview Lab

Preview with #0C4917

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

Preview Lab → · Contrast checker → · Palette generator →

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