#0C5717#0C5717

#0C5717 is a dark, moderate green. Relative luminance 0.070; OKLCH L 39.9% C 0.119 H 144.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#0C5717
RGBrgb(12, 87, 23)
HSLhsl(129, 76%, 19%)
HSVhsv(129, 86%, 34%)
CMYKcmyk(86.2%, 0%, 73.6%, 65.9%)
CIE-LABlab(31.71, -35.96, 29.86)
CIE-LCHlch(31.71, 46.74, 140.29°)
OKLaboklab(39.94% -0.0971 0.0687)
OKLCHoklch(39.94% 0.119 144.7)
XYZxyz(3.7142, 6.9560, 1.9573)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5717 #570C4C
analogous
#27570C #0C5717 #0C573D
triadic
#0C5717 #170C57 #57170C
tetradic
#0C5717 #0C2757 #570C4C #573D0C
square
#0C5717 #0C2757 #570C4C #573D0C
split-complementary
#0C5717 #3D0C57 #570C27
monochromatic
#041B07 #052109 #0C5717 #138D25 #1BC333

Accessibility & contrast

On white

8.78
#0C5717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#0C5717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5717
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5717#FFFFFF#000000##FFFFFF
##0C57171.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0E
Deuteranopia (green-blind)
#51481D
Tritanopia (blue-blind)
#00544A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #0c5717;
/* rgb */ color: rgb(12, 87, 23);
/* oklch */ color: oklch(39.9% 0.119 144.7);
Tailwind
colors: {
  custom: {
    50: '#5b8758',
    500: '#0c5717',
    950: '#000000',
  },
}
SCSS
$custom: #0c5717;
$custom-light: #5b8758;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5717",
  "rgb": {
    "r": 12,
    "g": 87,
    "b": 23
  },
  "hsl": {
    "h": 128.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39944,
    "c": 0.11893,
    "h": 144.7
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

primary
#0C5717
secondary
#922D83
accent
#35D7F2
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #0C5717

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

Preview Lab → · Contrast checker → · Palette generator →

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