#0C4518#0C4518

#0C4518 is a dark, moderate green. Relative luminance 0.044; OKLCH L 34.3% C 0.093 H 146.5°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#0C4518
RGBrgb(12, 69, 24)
HSLhsl(133, 70%, 16%)
HSVhsv(133, 83%, 27%)
CMYKcmyk(82.6%, 0%, 65.2%, 72.9%)
CIE-LABlab(24.95, -28.93, 21.78)
CIE-LCHlch(24.95, 36.21, 143.03°)
OKLaboklab(34.34% -0.0779 0.0516)
OKLCHoklch(34.34% 0.093 146.5)
XYZxyz(2.4444, 4.4001, 1.5844)
Luminance0.0440 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4518 #450C39
analogous
#1C450C #0C4518 #0C4534
triadic
#0C4518 #180C45 #45180C
tetradic
#0C4518 #0C1C45 #450C39 #45340C
square
#0C4518 #0C1C45 #450C39 #45340C
split-complementary
#0C4518 #340C45 #450C1C
monochromatic
#051A09 #051A09 #0C4518 #15792A #1EAD3C

Accessibility & contrast

On white

11.17
#0C4518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#0C4518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4518
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4518#FFFFFF#000000##FFFFFF
##0C45181.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463E13
Deuteranopia (green-blind)
#40391C
Tritanopia (blue-blind)
#00433B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #0c4518;
/* rgb */ color: rgb(12, 69, 24);
/* oklch */ color: oklch(34.3% 0.093 146.5);
Tailwind
colors: {
  custom: {
    50: '#567956',
    500: '#0c4518',
    950: '#000000',
  },
}
SCSS
$custom: #0c4518;
$custom-light: #567956;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4518",
  "rgb": {
    "r": 12,
    "g": 69,
    "b": 24
  },
  "hsl": {
    "h": 132.632,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34341,
    "c": 0.09348,
    "h": 146.5
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#0C4518
secondary
#812C6F
accent
#3BC8ED
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #0C4518

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

Preview Lab → · Contrast checker → · Palette generator →

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