#0C5F18#0C5F18

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

Color values

HEX#0C5F18
RGBrgb(12, 95, 24)
HSLhsl(129, 78%, 21%)
HSVhsv(129, 87%, 37%)
CMYKcmyk(87.4%, 0%, 74.7%, 62.7%)
CIE-LABlab(34.66, -38.70, 32.55)
CIE-LCHlch(34.66, 50.57, 139.94°)
OKLaboklab(42.4% -0.1045 0.0745)
OKLCHoklch(42.4% 0.128 144.5)
XYZxyz(4.4084, 8.3280, 2.2391)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F18 #5F0C53
analogous
#295F0C #0C5F18 #0C5F41
triadic
#0C5F18 #180C5F #5F180C
tetradic
#0C5F18 #0C295F #5F0C53 #5F410C
square
#0C5F18 #0C295F #5F0C53 #5F410C
split-complementary
#0C5F18 #410C5F #5F0C29
monochromatic
#031B07 #05290A #0C5F18 #139526 #1ACC33

Accessibility & contrast

On white

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

On black

2.67
#0C5F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##0C5F18#FFFFFF#000000##FFFFFF
##0C5F181.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c5f18;
/* rgb */ color: rgb(12, 95, 24);
/* oklch */ color: oklch(42.4% 0.128 144.5);
Tailwind
colors: {
  custom: {
    50: '#5d8d59',
    500: '#0c5f18',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f18;
$custom-light: #5d8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f18",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 128.675,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.424,
    "c": 0.12832,
    "h": 144.5
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#0C5F18
secondary
#992D8A
accent
#34D8F4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0C5F18

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

Preview Lab → · Contrast checker → · Palette generator →

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