#0C5917#0C5917

#0C5917 is a dark, vivid green. Relative luminance 0.073; OKLCH L 40.6% C 0.121 H 144.6°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#0C5917
RGBrgb(12, 89, 23)
HSLhsl(129, 76%, 20%)
HSVhsv(129, 87%, 35%)
CMYKcmyk(86.5%, 0%, 74.2%, 65.1%)
CIE-LABlab(32.45, -36.68, 30.65)
CIE-LCHlch(32.45, 47.80, 140.12°)
OKLaboklab(40.56% -0.099 0.0704)
OKLCHoklch(40.56% 0.121 144.6)
XYZxyz(3.8784, 7.2843, 2.0121)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5917 #590C4E
analogous
#28590C #0C5917 #0C593D
triadic
#0C5917 #170C59 #59170C
tetradic
#0C5917 #0C2859 #590C4E #593D0C
square
#0C5917 #0C2859 #590C4E #593D0C
split-complementary
#0C5917 #3D0C59 #590C28
monochromatic
#041B07 #052309 #0C5917 #138F25 #1BC533

Accessibility & contrast

On white

8.55
#0C5917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#0C5917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5917
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5917#FFFFFF#000000##FFFFFF
##0C59171.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500D
Deuteranopia (green-blind)
#524A1D
Tritanopia (blue-blind)
#00564C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #0c5917;
/* rgb */ color: rgb(12, 89, 23);
/* oklch */ color: oklch(40.6% 0.121 144.6);
Tailwind
colors: {
  custom: {
    50: '#5c8958',
    500: '#0c5917',
    950: '#000000',
  },
}
SCSS
$custom: #0c5917;
$custom-light: #5c8958;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5917",
  "rgb": {
    "r": 12,
    "g": 89,
    "b": 23
  },
  "hsl": {
    "h": 128.571,
    "s": 76.238,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40558,
    "c": 0.12149,
    "h": 144.6
  },
  "luminance": 0.07285
}

Semantic roles & 50–950 ramp

primary
#0C5917
secondary
#942D85
accent
#35D8F3
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #0C5917

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

Preview Lab → · Contrast checker → · Palette generator →

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