#0C420F#0C420F

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

Color values

HEX#0C420F
RGBrgb(12, 66, 15)
HSLhsl(123, 69%, 15%)
HSVhsv(123, 82%, 26%)
CMYKcmyk(81.8%, 0%, 77.3%, 74.1%)
CIE-LABlab(23.70, -28.93, 25.08)
CIE-LCHlch(23.70, 38.29, 139.08°)
OKLaboklab(33.27% -0.0784 0.0576)
OKLCHoklch(33.27% 0.097 143.7)
XYZxyz(2.1859, 4.0088, 1.1104)
Luminance0.0401 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C420F #420C3F
analogous
#24420C #0C420F #0C422A
triadic
#0C420F #0F0C42 #420F0C
tetradic
#0C420F #0C2442 #420C3F #422A0C
square
#0C420F #0C2442 #420C3F #422A0C
split-complementary
#0C420F #2A0C42 #420C24
monochromatic
#051A06 #051A06 #0C420F #15761B #1FAA27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C420F#FFFFFF#000000##FFFFFF
##0C420F1.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)
#433B08
Deuteranopia (green-blind)
#3D3714
Tritanopia (blue-blind)
#004038
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #0c420f;
/* rgb */ color: rgb(12, 66, 15);
/* oklch */ color: oklch(33.3% 0.097 143.7);
Tailwind
colors: {
  custom: {
    50: '#557750',
    500: '#0c420f',
    950: '#000000',
  },
}
SCSS
$custom: #0c420f;
$custom-light: #557750;
$custom-dark: #000000;
JSON
{
  "hex": "#0c420f",
  "rgb": {
    "r": 12,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 123.333,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33271,
    "c": 0.09726,
    "h": 143.7
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#0C420F
secondary
#7E2C79
accent
#3CE2EC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #0C420F

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

Preview Lab → · Contrast checker → · Palette generator →

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