#0C4218#0C4218

#0C4218 is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.4% C 0.089 H 146.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#0C4218
RGBrgb(12, 66, 24)
HSLhsl(133, 69%, 15%)
HSVhsv(133, 82%, 26%)
CMYKcmyk(81.8%, 0%, 63.6%, 74.1%)
CIE-LABlab(23.80, -27.70, 20.42)
CIE-LCHlch(23.80, 34.41, 143.59°)
OKLaboklab(33.39% -0.0746 0.0487)
OKLCHoklch(33.39% 0.089 146.9)
XYZxyz(2.2645, 4.0403, 1.5245)
Luminance0.0404 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4218 #420C36
analogous
#1B420C #0C4218 #0C4233
triadic
#0C4218 #180C42 #42180C
tetradic
#0C4218 #0C1B42 #420C36 #42330C
square
#0C4218 #0C1B42 #420C36 #42330C
split-complementary
#0C4218 #330C42 #420C1B
monochromatic
#051A09 #051A09 #0C4218 #15762B #1FAA3E

Accessibility & contrast

On white

11.61
#0C4218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#0C4218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4218
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4218#FFFFFF#000000##FFFFFF
##0C42181.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B14
Deuteranopia (green-blind)
#3D371B
Tritanopia (blue-blind)
#004039
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0c4218;
/* rgb */ color: rgb(12, 66, 24);
/* oklch */ color: oklch(33.4% 0.089 146.9);
Tailwind
colors: {
  custom: {
    50: '#557756',
    500: '#0c4218',
    950: '#000000',
  },
}
SCSS
$custom: #0c4218;
$custom-light: #557756;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4218",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 24
  },
  "hsl": {
    "h": 133.333,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.3339,
    "c": 0.08907,
    "h": 146.9
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#0C4218
secondary
#7E2C6C
accent
#3CC5EC
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C4218

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

Preview Lab → · Contrast checker → · Palette generator →

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