#0C4F16#0C4F16

#0C4F16 is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.5% C 0.109 H 144.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#0C4F16
RGBrgb(12, 79, 22)
HSLhsl(129, 74%, 18%)
HSVhsv(129, 85%, 31%)
CMYKcmyk(84.8%, 0%, 72.2%, 69%)
CIE-LABlab(28.71, -33.12, 27.09)
CIE-LCHlch(28.71, 42.79, 140.72°)
OKLaboklab(37.46% -0.0894 0.0628)
OKLCHoklch(37.46% 0.109 144.9)
XYZxyz(3.0922, 5.7277, 1.7015)
Luminance0.0573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F16 #4F0C45
analogous
#244F0C #0C4F16 #0C4F37
triadic
#0C4F16 #160C4F #4F160C
tetradic
#0C4F16 #0C244F #4F0C45 #4F370C
square
#0C4F16 #0C244F #4F0C45 #4F370C
split-complementary
#0C4F16 #370C4F #4F0C24
monochromatic
#041B07 #041B07 #0C4F16 #148425 #1CB934

Accessibility & contrast

On white

9.79
#0C4F16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#0C4F16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F16
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F16#FFFFFF#000000##FFFFFF
##0C4F161.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50470F
Deuteranopia (green-blind)
#49421B
Tritanopia (blue-blind)
#004D43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f16;
/* rgb */ color: rgb(12, 79, 22);
/* oklch */ color: oklch(37.5% 0.109 144.9);
Tailwind
colors: {
  custom: {
    50: '#598156',
    500: '#0c4f16',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f16;
$custom-light: #598156;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f16",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 22
  },
  "hsl": {
    "h": 128.955,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37455,
    "c": 0.10922,
    "h": 144.9
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#0C4F16
secondary
#8B2C7C
accent
#38D5F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4F16

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

Preview Lab → · Contrast checker → · Palette generator →

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