#0C5712#0C5712

#0C5712 is a dark, vivid green. Relative luminance 0.069; OKLCH L 39.9% C 0.122 H 143.7°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#0C5712
RGBrgb(12, 87, 18)
HSLhsl(125, 76%, 19%)
HSVhsv(125, 86%, 34%)
CMYKcmyk(86.2%, 0%, 79.3%, 65.9%)
CIE-LABlab(31.66, -36.47, 32.02)
CIE-LCHlch(31.66, 48.53, 138.72°)
OKLaboklab(39.9% -0.0987 0.0726)
OKLCHoklch(39.9% 0.123 143.7)
XYZxyz(3.6688, 6.9378, 1.7179)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5712 #570C51
analogous
#2C570C #0C5712 #0C5738
triadic
#0C5712 #120C57 #57120C
tetradic
#0C5712 #0C2C57 #570C51 #57380C
square
#0C5712 #0C2C57 #570C51 #57380C
split-complementary
#0C5712 #380C57 #570C2C
monochromatic
#041B06 #052107 #0C5712 #138D1D #1BC328

Accessibility & contrast

On white

8.80
#0C5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5712
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5712#FFFFFF#000000##FFFFFF
##0C57121.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#514819
Tritanopia (blue-blind)
#00544A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #0c5712;
/* rgb */ color: rgb(12, 87, 18);
/* oklch */ color: oklch(39.9% 0.122 143.7);
Tailwind
colors: {
  custom: {
    50: '#5b8755',
    500: '#0c5712',
    950: '#000000',
  },
}
SCSS
$custom: #0c5712;
$custom-light: #5b8755;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5712",
  "rgb": {
    "r": 12,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 124.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39896,
    "c": 0.1225,
    "h": 143.7
  },
  "luminance": 0.06938
}

Semantic roles & 50–950 ramp

primary
#0C5712
secondary
#922D8A
accent
#35E3F2
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #0C5712

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

Preview Lab → · Contrast checker → · Palette generator →

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