#0C4F18#0C4F18

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

Color values

HEX#0C4F18
RGBrgb(12, 79, 24)
HSLhsl(131, 74%, 18%)
HSVhsv(131, 85%, 31%)
CMYKcmyk(84.8%, 0%, 69.6%, 69%)
CIE-LABlab(28.74, -32.87, 26.11)
CIE-LCHlch(28.74, 41.98, 141.53°)
OKLaboklab(37.48% -0.0886 0.0609)
OKLCHoklch(37.48% 0.108 145.5)
XYZxyz(3.1122, 5.7357, 1.8071)
Luminance0.0574 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F18 #4F0C43
analogous
#224F0C #0C4F18 #0C4F39
triadic
#0C4F18 #180C4F #4F180C
tetradic
#0C4F18 #0C224F #4F0C43 #4F390C
square
#0C4F18 #0C224F #4F0C43 #4F390C
split-complementary
#0C4F18 #390C4F #4F0C22
monochromatic
#041B08 #041B08 #0C4F18 #148428 #1CB938

Accessibility & contrast

On white

9.78
#0C4F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4F18
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F18#FFFFFF#000000##FFFFFF
##0C4F181.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504712
Deuteranopia (green-blind)
#49421D
Tritanopia (blue-blind)
#004D43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f18;
/* rgb */ color: rgb(12, 79, 24);
/* oklch */ color: oklch(37.5% 0.108 145.5);
Tailwind
colors: {
  custom: {
    50: '#598157',
    500: '#0c4f18',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f18;
$custom-light: #598157;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f18",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 130.746,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37479,
    "c": 0.10753,
    "h": 145.5
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#0C4F18
secondary
#8B2C7A
accent
#38CFF0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C4F18

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

Preview Lab → · Contrast checker → · Palette generator →

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