#0C420E#0C420E

#0C420E is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.3% C 0.098 H 143.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#0C420E
RGBrgb(12, 66, 14)
HSLhsl(122, 69%, 15%)
HSVhsv(122, 82%, 26%)
CMYKcmyk(81.8%, 0%, 78.8%, 74.1%)
CIE-LABlab(23.69, -29.04, 25.54)
CIE-LCHlch(23.69, 38.68, 138.67°)
OKLaboklab(33.26% -0.0787 0.0584)
OKLCHoklch(33.26% 0.098 143.4)
XYZxyz(2.1790, 4.0061, 1.0738)
Luminance0.0401 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C420E #420C40
analogous
#25420C #0C420E #0C4229
triadic
#0C420E #0E0C42 #420E0C
tetradic
#0C420E #0C2542 #420C40 #42290C
square
#0C420E #0C2542 #420C40 #42290C
split-complementary
#0C420E #290C42 #420C25
monochromatic
#051A05 #051A05 #0C420E #157619 #1FAA24

Accessibility & contrast

On white

11.66
#0C420E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C420E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C420E#FFFFFF#000000##FFFFFF
##0C420E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B07
Deuteranopia (green-blind)
#3D3713
Tritanopia (blue-blind)
#004038
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c420e;
/* rgb */ color: rgb(12, 66, 14);
/* oklch */ color: oklch(33.3% 0.098 143.4);
Tailwind
colors: {
  custom: {
    50: '#557750',
    500: '#0c420e',
    950: '#000000',
  },
}
SCSS
$custom: #0c420e;
$custom-light: #557750;
$custom-dark: #000000;
JSON
{
  "hex": "#0c420e",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 14
  },
  "hsl": {
    "h": 122.222,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.3326,
    "c": 0.09805,
    "h": 143.4
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#0C420E
secondary
#7E2C7B
accent
#3CE6EC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #0C420E

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

Preview Lab → · Contrast checker → · Palette generator →

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