#0C4F0D#0C4F0D

#0C4F0D is a dark, moderate green. Relative luminance 0.057; OKLCH L 37.4% C 0.116 H 143.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#0C4F0D
RGBrgb(12, 79, 13)
HSLhsl(121, 74%, 18%)
HSVhsv(121, 85%, 31%)
CMYKcmyk(84.8%, 0%, 83.5%, 69%)
CIE-LABlab(28.64, -34.04, 31.00)
CIE-LCHlch(28.64, 46.05, 137.68°)
OKLaboklab(37.37% -0.0924 0.0697)
OKLCHoklch(37.37% 0.116 143)
XYZxyz(3.0201, 5.6988, 1.3215)
Luminance0.0570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F0D #4F0C4E
analogous
#2C4F0C #0C4F0D #0C4F2F
triadic
#0C4F0D #0D0C4F #4F0D0C
tetradic
#0C4F0D #0C2C4F #4F0C4E #4F2F0C
square
#0C4F0D #0C2C4F #4F0C4E #4F2F0C
split-complementary
#0C4F0D #2F0C4F #4F0C2C
monochromatic
#041B04 #041B04 #0C4F0D #148416 #1CB91E

Accessibility & contrast

On white

9.81
#0C4F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#0C4F0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F0D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F0D#FFFFFF#000000##FFFFFF
##0C4F0D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514702
Deuteranopia (green-blind)
#4A4214
Tritanopia (blue-blind)
#004C42
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f0d;
/* rgb */ color: rgb(12, 79, 13);
/* oklch */ color: oklch(37.4% 0.116 143.0);
Tailwind
colors: {
  custom: {
    50: '#598151',
    500: '#0c4f0d',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f0d;
$custom-light: #598151;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f0d",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 13
  },
  "hsl": {
    "h": 120.896,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37368,
    "c": 0.1157,
    "h": 143
  },
  "luminance": 0.05699
}

Semantic roles & 50–950 ramp

primary
#0C4F0D
secondary
#8B2C89
accent
#38EEF0
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C4F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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