#0C4816#0C4816

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

Color values

HEX#0C4816
RGBrgb(12, 72, 22)
HSLhsl(130, 71%, 16%)
HSVhsv(130, 83%, 28%)
CMYKcmyk(83.3%, 0%, 69.4%, 71.8%)
CIE-LABlab(26.07, -30.42, 24.15)
CIE-LCHlch(26.07, 38.84, 141.56°)
OKLaboklab(35.26% -0.0821 0.0565)
OKLCHoklch(35.26% 0.1 145.5)
XYZxyz(2.6136, 4.7705, 1.5420)
Luminance0.0477 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4816 #480C3E
analogous
#20480C #0C4816 #0C4834
triadic
#0C4816 #160C48 #48160C
tetradic
#0C4816 #0C2048 #480C3E #48340C
square
#0C4816 #0C2048 #480C3E #48340C
split-complementary
#0C4816 #340C48 #480C20
monochromatic
#041A08 #041A08 #0C4816 #157C26 #1DB136

Accessibility & contrast

On white

10.75
#0C4816 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#0C4816 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4816
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4816#FFFFFF#000000##FFFFFF
##0C48161.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494110
Deuteranopia (green-blind)
#423C1A
Tritanopia (blue-blind)
#00463D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4816;
/* rgb */ color: rgb(12, 72, 22);
/* oklch */ color: oklch(35.3% 0.100 145.5);
Tailwind
colors: {
  custom: {
    50: '#577c55',
    500: '#0c4816',
    950: '#000000',
  },
}
SCSS
$custom: #0c4816;
$custom-light: #577c55;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4816",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 22
  },
  "hsl": {
    "h": 130,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35261,
    "c": 0.09964,
    "h": 145.5
  },
  "luminance": 0.04771
}

Semantic roles & 50–950 ramp

primary
#0C4816
secondary
#842C75
accent
#3AD0EE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C4816

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

Preview Lab → · Contrast checker → · Palette generator →

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