#0C420C#0C420C

#0C420C is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.2% C 0.100 H 142.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#0C420C
RGBrgb(12, 66, 12)
HSLhsl(120, 69%, 15%)
HSVhsv(120, 82%, 26%)
CMYKcmyk(81.8%, 0%, 81.8%, 74.1%)
CIE-LABlab(23.67, -29.25, 26.44)
CIE-LCHlch(23.67, 39.43, 137.89°)
OKLaboklab(33.24% -0.0794 0.06)
OKLCHoklch(33.24% 0.1 142.9)
XYZxyz(2.1661, 4.0009, 1.0058)
Luminance0.0400 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C420C #420C42
analogous
#27420C #0C420C #0C4227
triadic
#0C420C #0C0C42 #420C0C
tetradic
#0C420C #0C2742 #420C42 #42270C
square
#0C420C #0C2742 #420C42 #42270C
split-complementary
#0C420C #270C42 #420C27
monochromatic
#051A05 #051A05 #0C420C #157615 #1FAA1F

Accessibility & contrast

On white

11.67
#0C420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#0C420C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C420C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C420C#FFFFFF#000000##FFFFFF
##0C420C1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B04
Deuteranopia (green-blind)
#3D3712
Tritanopia (blue-blind)
#004037
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c420c;
/* rgb */ color: rgb(12, 66, 12);
/* oklch */ color: oklch(33.2% 0.100 142.9);
Tailwind
colors: {
  custom: {
    50: '#55774f',
    500: '#0c420c',
    950: '#000000',
  },
}
SCSS
$custom: #0c420c;
$custom-light: #55774f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c420c",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 120,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33241,
    "c": 0.09953,
    "h": 142.9
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#0C420C
secondary
#7E2C7E
accent
#3CECEC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #0C420C

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

Preview Lab → · Contrast checker → · Palette generator →

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