#0C5017#0C5017

#0C5017 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.8% C 0.110 H 145.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#0C5017
RGBrgb(12, 80, 23)
HSLhsl(130, 74%, 18%)
HSVhsv(130, 85%, 31%)
CMYKcmyk(85%, 0%, 71.2%, 68.6%)
CIE-LABlab(29.10, -33.37, 27.02)
CIE-LCHlch(29.10, 42.94, 141.00°)
OKLaboklab(37.78% -0.09 0.0627)
OKLCHoklch(37.78% 0.11 145.1)
XYZxyz(3.1747, 5.8770, 1.7775)
Luminance0.0588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5017 #500C45
analogous
#23500C #0C5017 #0C5039
triadic
#0C5017 #170C50 #50170C
tetradic
#0C5017 #0C2350 #500C45 #50390C
square
#0C5017 #0C2350 #500C45 #50390C
split-complementary
#0C5017 #390C50 #500C23
monochromatic
#041B08 #041B08 #0C5017 #148526 #1CBA36

Accessibility & contrast

On white

9.65
#0C5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#0C5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5017
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5017#FFFFFF#000000##FFFFFF
##0C50171.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514810
Deuteranopia (green-blind)
#4A431C
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c5017;
/* rgb */ color: rgb(12, 80, 23);
/* oklch */ color: oklch(37.8% 0.110 145.1);
Tailwind
colors: {
  custom: {
    50: '#598257',
    500: '#0c5017',
    950: '#000000',
  },
}
SCSS
$custom: #0c5017;
$custom-light: #598257;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5017",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 129.706,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37778,
    "c": 0.10973,
    "h": 145.1
  },
  "luminance": 0.05877
}

Semantic roles & 50–950 ramp

primary
#0C5017
secondary
#8B2C7C
accent
#37D3F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C5017

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

Preview Lab → · Contrast checker → · Palette generator →

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