#0C4818#0C4818

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

Color values

HEX#0C4818
RGBrgb(12, 72, 24)
HSLhsl(132, 71%, 16%)
HSVhsv(132, 83%, 28%)
CMYKcmyk(83.3%, 0%, 66.7%, 71.8%)
CIE-LABlab(26.09, -30.14, 23.11)
CIE-LCHlch(26.09, 37.98, 142.52°)
OKLaboklab(35.29% -0.0812 0.0545)
OKLCHoklch(35.29% 0.098 146.1)
XYZxyz(2.6337, 4.7785, 1.6475)
Luminance0.0478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4818 #480C3C
analogous
#1E480C #0C4818 #0C4836
triadic
#0C4818 #180C48 #48180C
tetradic
#0C4818 #0C1E48 #480C3C #48360C
square
#0C4818 #0C1E48 #480C3C #48360C
split-complementary
#0C4818 #360C48 #480C1E
monochromatic
#041A09 #041A09 #0C4818 #157C29 #1DB13B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C4818#FFFFFF#000000##FFFFFF
##0C48181.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)
#494113
Deuteranopia (green-blind)
#423C1C
Tritanopia (blue-blind)
#00463E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4818;
/* rgb */ color: rgb(12, 72, 24);
/* oklch */ color: oklch(35.3% 0.098 146.1);
Tailwind
colors: {
  custom: {
    50: '#567c57',
    500: '#0c4818',
    950: '#000000',
  },
}
SCSS
$custom: #0c4818;
$custom-light: #567c57;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4818",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 24
  },
  "hsl": {
    "h": 132,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35288,
    "c": 0.0978,
    "h": 146.1
  },
  "luminance": 0.04779
}

Semantic roles & 50–950 ramp

primary
#0C4818
secondary
#842C72
accent
#3ACAEE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C4818

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

Preview Lab → · Contrast checker → · Palette generator →

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