#0C5F17#0C5F17

#0C5F17 is a dark, vivid green. Relative luminance 0.083; OKLCH L 42.4% C 0.129 H 144.3°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#0C5F17
RGBrgb(12, 95, 23)
HSLhsl(128, 78%, 21%)
HSVhsv(128, 87%, 37%)
CMYKcmyk(87.4%, 0%, 75.8%, 62.7%)
CIE-LABlab(34.65, -38.81, 32.97)
CIE-LCHlch(34.65, 50.92, 139.65°)
OKLaboklab(42.39% -0.1048 0.0753)
OKLCHoklch(42.39% 0.129 144.3)
XYZxyz(4.3982, 8.3239, 2.1853)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F17 #5F0C54
analogous
#2A5F0C #0C5F17 #0C5F40
triadic
#0C5F17 #170C5F #5F170C
tetradic
#0C5F17 #0C2A5F #5F0C54 #5F400C
square
#0C5F17 #0C2A5F #5F0C54 #5F400C
split-complementary
#0C5F17 #400C5F #5F0C2A
monochromatic
#031B07 #05290A #0C5F17 #139524 #1ACC31

Accessibility & contrast

On white

7.88
#0C5F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#0C5F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5F17
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F17#FFFFFF#000000##FFFFFF
##0C5F171.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550B
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#005C51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #0c5f17;
/* rgb */ color: rgb(12, 95, 23);
/* oklch */ color: oklch(42.4% 0.129 144.3);
Tailwind
colors: {
  custom: {
    50: '#5d8d59',
    500: '#0c5f17',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f17;
$custom-light: #5d8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f17",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 23
  },
  "hsl": {
    "h": 127.952,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.4239,
    "c": 0.12903,
    "h": 144.3
  },
  "luminance": 0.08324
}

Semantic roles & 50–950 ramp

primary
#0C5F17
secondary
#992D8B
accent
#34DBF4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0C5F17

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

Preview Lab → · Contrast checker → · Palette generator →

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