#0C420B#0C420B

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

Color values

HEX#0C420B
RGBrgb(12, 66, 11)
HSLhsl(119, 71%, 15%)
HSVhsv(119, 83%, 26%)
CMYKcmyk(81.8%, 0%, 83.3%, 74.1%)
CIE-LABlab(23.67, -29.35, 26.87)
CIE-LCHlch(23.67, 39.79, 137.53°)
OKLaboklab(33.23% -0.0797 0.0607)
OKLCHoklch(33.23% 0.1 142.7)
XYZxyz(2.1601, 3.9985, 0.9745)
Luminance0.0400 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C420B #410B42
analogous
#27420B #0C420B #0B4225
triadic
#0C420B #0B0C42 #420B0C
tetradic
#0C420B #0B2742 #410B42 #42250B
square
#0C420B #0B2742 #410B42 #42250B
split-complementary
#0C420B #250B42 #420B27
monochromatic
#051A04 #051A04 #0C420B #167614 #1FAB1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C420B#FFFFFF#000000##FFFFFF
##0C420B1.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)
#443B03
Deuteranopia (green-blind)
#3E3711
Tritanopia (blue-blind)
#004037
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c420b;
/* rgb */ color: rgb(12, 66, 11);
/* oklch */ color: oklch(33.2% 0.100 142.7);
Tailwind
colors: {
  custom: {
    50: '#55774e',
    500: '#0c420b',
    950: '#000000',
  },
}
SCSS
$custom: #0c420b;
$custom-light: #55774e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c420b",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 118.909,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.33232,
    "c": 0.10023,
    "h": 142.7
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#0C420B
secondary
#7D2A7F
accent
#3AEEEB
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #0C420B

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

Preview Lab → · Contrast checker → · Palette generator →

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