#0C4817#0C4817

#0C4817 is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.3% C 0.099 H 145.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#0C4817
RGBrgb(12, 72, 23)
HSLhsl(131, 71%, 16%)
HSVhsv(131, 83%, 28%)
CMYKcmyk(83.3%, 0%, 68.1%, 71.8%)
CIE-LABlab(26.08, -30.28, 23.63)
CIE-LCHlch(26.08, 38.41, 142.03°)
OKLaboklab(35.27% -0.0816 0.0555)
OKLCHoklch(35.27% 0.099 145.8)
XYZxyz(2.6235, 4.7744, 1.5937)
Luminance0.0478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4817 #480C3D
analogous
#1F480C #0C4817 #0C4835
triadic
#0C4817 #170C48 #48170C
tetradic
#0C4817 #0C1F48 #480C3D #48350C
square
#0C4817 #0C1F48 #480C3D #48350C
split-complementary
#0C4817 #350C48 #480C1F
monochromatic
#041A08 #041A08 #0C4817 #157C28 #1DB139

Accessibility & contrast

On white

10.74
#0C4817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#0C4817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4817
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4817#FFFFFF#000000##FFFFFF
##0C48171.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494112
Deuteranopia (green-blind)
#423C1B
Tritanopia (blue-blind)
#00463E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4817;
/* rgb */ color: rgb(12, 72, 23);
/* oklch */ color: oklch(35.3% 0.099 145.8);
Tailwind
colors: {
  custom: {
    50: '#577c56',
    500: '#0c4817',
    950: '#000000',
  },
}
SCSS
$custom: #0c4817;
$custom-light: #577c56;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4817",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 23
  },
  "hsl": {
    "h": 131,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35274,
    "c": 0.09873,
    "h": 145.8
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#0C4817
secondary
#842C74
accent
#3ACDEE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C4817

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

Preview Lab → · Contrast checker → · Palette generator →

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