#0C5818#0C5818

#0C5818 is a dark, moderate green. Relative luminance 0.071; OKLCH L 40.3% C 0.119 H 144.9°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#0C5818
RGBrgb(12, 88, 24)
HSLhsl(129, 76%, 20%)
HSVhsv(129, 86%, 35%)
CMYKcmyk(86.4%, 0%, 72.7%, 65.5%)
CIE-LABlab(32.09, -36.21, 29.80)
CIE-LCHlch(32.09, 46.89, 140.54°)
OKLaboklab(40.26% -0.0977 0.0687)
OKLCHoklch(40.26% 0.119 144.9)
XYZxyz(3.8059, 7.1231, 2.0383)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5818 #580C4C
analogous
#26580C #0C5818 #0C583E
triadic
#0C5818 #180C58 #58180C
tetradic
#0C5818 #0C2658 #580C4C #583E0C
square
#0C5818 #0C2658 #580C4C #583E0C
split-complementary
#0C5818 #3E0C58 #580C26
monochromatic
#041B07 #052209 #0C5818 #138E27 #1BC435

Accessibility & contrast

On white

8.66
#0C5818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#0C5818 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5818
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5818#FFFFFF#000000##FFFFFF
##0C58181.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0F
Deuteranopia (green-blind)
#51491E
Tritanopia (blue-blind)
#00554B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #0c5818;
/* rgb */ color: rgb(12, 88, 24);
/* oklch */ color: oklch(40.3% 0.119 144.9);
Tailwind
colors: {
  custom: {
    50: '#5b8858',
    500: '#0c5818',
    950: '#000000',
  },
}
SCSS
$custom: #0c5818;
$custom-light: #5b8858;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5818",
  "rgb": {
    "r": 12,
    "g": 88,
    "b": 24
  },
  "hsl": {
    "h": 129.474,
    "s": 76,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40262,
    "c": 0.11945,
    "h": 144.9
  },
  "luminance": 0.07124
}

Semantic roles & 50–950 ramp

primary
#0C5818
secondary
#932D83
accent
#35D5F3
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #0C5818

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

Preview Lab → · Contrast checker → · Palette generator →

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