#0C4815#0C4815

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

Color values

HEX#0C4815
RGBrgb(12, 72, 21)
HSLhsl(129, 71%, 16%)
HSVhsv(129, 83%, 28%)
CMYKcmyk(83.3%, 0%, 70.8%, 71.8%)
CIE-LABlab(26.06, -30.56, 24.66)
CIE-LCHlch(26.06, 39.26, 141.10°)
OKLaboklab(35.25% -0.0825 0.0575)
OKLCHoklch(35.25% 0.101 145.1)
XYZxyz(2.6042, 4.7667, 1.4921)
Luminance0.0477 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4815 #480C3F
analogous
#21480C #0C4815 #0C4833
triadic
#0C4815 #150C48 #48150C
tetradic
#0C4815 #0C2148 #480C3F #48330C
square
#0C4815 #0C2148 #480C3F #48330C
split-complementary
#0C4815 #330C48 #480C21
monochromatic
#041A08 #041A08 #0C4815 #157C24 #1DB134

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C4815#FFFFFF#000000##FFFFFF
##0C48151.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)
#49410F
Deuteranopia (green-blind)
#433C19
Tritanopia (blue-blind)
#00463D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4815;
/* rgb */ color: rgb(12, 72, 21);
/* oklch */ color: oklch(35.2% 0.101 145.1);
Tailwind
colors: {
  custom: {
    50: '#577c55',
    500: '#0c4815',
    950: '#000000',
  },
}
SCSS
$custom: #0c4815;
$custom-light: #577c55;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4815",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 21
  },
  "hsl": {
    "h": 129,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35248,
    "c": 0.10053,
    "h": 145.1
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#0C4815
secondary
#842C77
accent
#3AD3EE
background
#F5F7F5
surface
#E9EEE8
border
#C5C9C4
text
#030903
muted
#787B78

Preview Lab

Preview with #0C4815

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

Preview Lab → · Contrast checker → · Palette generator →

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