#0C5012#0C5012

#0C5012 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.7% C 0.114 H 143.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#0C5012
RGBrgb(12, 80, 18)
HSLhsl(125, 74%, 18%)
HSVhsv(125, 85%, 31%)
CMYKcmyk(85%, 0%, 77.5%, 68.6%)
CIE-LABlab(29.05, -33.94, 29.33)
CIE-LCHlch(29.05, 44.86, 139.17°)
OKLaboklab(37.72% -0.0918 0.0669)
OKLCHoklch(37.72% 0.114 143.9)
XYZxyz(3.1293, 5.8588, 1.5381)
Luminance0.0586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5012 #500C4A
analogous
#28500C #0C5012 #0C5034
triadic
#0C5012 #120C50 #50120C
tetradic
#0C5012 #0C2850 #500C4A #50340C
square
#0C5012 #0C2850 #500C4A #50340C
split-complementary
#0C5012 #340C50 #500C28
monochromatic
#041B06 #041B06 #0C5012 #14851E #1CBA2A

Accessibility & contrast

On white

9.67
#0C5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#0C5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5012
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5012#FFFFFF#000000##FFFFFF
##0C50121.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4A4218
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c5012;
/* rgb */ color: rgb(12, 80, 18);
/* oklch */ color: oklch(37.7% 0.114 143.9);
Tailwind
colors: {
  custom: {
    50: '#598254',
    500: '#0c5012',
    950: '#000000',
  },
}
SCSS
$custom: #0c5012;
$custom-light: #598254;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5012",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 125.294,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37725,
    "c": 0.11363,
    "h": 143.9
  },
  "luminance": 0.05859
}

Semantic roles & 50–950 ramp

primary
#0C5012
secondary
#8B2C83
accent
#37E0F1
background
#F5F8F4
surface
#E9EFE8
border
#C5CAC4
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C5012

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

Preview Lab → · Contrast checker → · Palette generator →

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