#0C5B17#0C5B17

#0C5B17 is a dark, vivid green. Relative luminance 0.076; OKLCH L 41.2% C 0.124 H 144.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#0C5B17
RGBrgb(12, 91, 23)
HSLhsl(128, 77%, 20%)
HSVhsv(128, 87%, 36%)
CMYKcmyk(86.8%, 0%, 74.7%, 64.3%)
CIE-LABlab(33.18, -37.39, 31.43)
CIE-LCHlch(33.18, 48.85, 139.95°)
OKLaboklab(41.17% -0.101 0.072)
OKLCHoklch(41.17% 0.124 144.5)
XYZxyz(4.0471, 7.6217, 2.0683)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5B17 #5B0C50
analogous
#295B0C #0C5B17 #0C5B3E
triadic
#0C5B17 #170C5B #5B170C
tetradic
#0C5B17 #0C295B #5B0C50 #5B3E0C
square
#0C5B17 #0C295B #5B0C50 #5B3E0C
split-complementary
#0C5B17 #3E0C5B #5B0C29
monochromatic
#041B07 #052509 #0C5B17 #139125 #1AC732

Accessibility & contrast

On white

8.32
#0C5B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#0C5B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5B17
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5B17#FFFFFF#000000##FFFFFF
##0C5B171.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520D
Deuteranopia (green-blind)
#544C1E
Tritanopia (blue-blind)
#00584D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0c5b17;
/* rgb */ color: rgb(12, 91, 23);
/* oklch */ color: oklch(41.2% 0.124 144.5);
Tailwind
colors: {
  custom: {
    50: '#5c8a58',
    500: '#0c5b17',
    950: '#000000',
  },
}
SCSS
$custom: #0c5b17;
$custom-light: #5c8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5b17",
  "rgb": {
    "r": 12,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 128.354,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41171,
    "c": 0.12403,
    "h": 144.5
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#0C5B17
secondary
#962D87
accent
#35D9F3
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050C03
muted
#797D78

Preview Lab

Preview with #0C5B17

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

Preview Lab → · Contrast checker → · Palette generator →

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