#0C420A#0C420A

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

Color values

HEX#0C420A
RGBrgb(12, 66, 10)
HSLhsl(118, 74%, 15%)
HSVhsv(118, 85%, 26%)
CMYKcmyk(81.8%, 0%, 84.8%, 74.1%)
CIE-LABlab(23.66, -29.44, 27.28)
CIE-LCHlch(23.66, 40.13, 137.18°)
OKLaboklab(33.22% -0.08 0.0614)
OKLCHoklch(33.22% 0.101 142.5)
XYZxyz(2.1545, 3.9963, 0.9449)
Luminance0.0400 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C420A #400A42
analogous
#28420A #0C420A #0A4224
triadic
#0C420A #0A0C42 #420A0C
tetradic
#0C420A #0A2842 #400A42 #42240A
square
#0C420A #0A2842 #400A42 #42240A
split-complementary
#0C420A #240A42 #420A28
monochromatic
#051B04 #051B04 #0C420A #167712 #1FAC1A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C420A#FFFFFF#000000##FFFFFF
##0C420A1.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)
#443B02
Deuteranopia (green-blind)
#3E3710
Tritanopia (blue-blind)
#004037
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c420a;
/* rgb */ color: rgb(12, 66, 10);
/* oklch */ color: oklch(33.2% 0.101 142.5);
Tailwind
colors: {
  custom: {
    50: '#56774d',
    500: '#0c420a',
    950: '#000000',
  },
}
SCSS
$custom: #0c420a;
$custom-light: #56774d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c420a",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 10
  },
  "hsl": {
    "h": 117.857,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33223,
    "c": 0.10089,
    "h": 142.5
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#0C420A
secondary
#7C297F
accent
#37F0EA
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030901
muted
#787B77

Preview Lab

Preview with #0C420A

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

Preview Lab → · Contrast checker → · Palette generator →

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