#0C4728#0C4728

#0C4728 is a dark, moderate green. Relative luminance 0.047; OKLCH L 35.3% C 0.080 H 154.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#0C4728
RGBrgb(12, 71, 40)
HSLhsl(148, 71%, 16%)
HSVhsv(148, 83%, 28%)
CMYKcmyk(83.1%, 0%, 43.7%, 72.2%)
CIE-LABlab(25.97, -26.73, 13.51)
CIE-LCHlch(25.97, 29.95, 153.18°)
OKLaboklab(35.27% -0.0721 0.0337)
OKLCHoklch(35.27% 0.08 154.9)
XYZxyz(2.7876, 4.7375, 2.7746)
Luminance0.0474 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4728 #470C2B
analogous
#0E470C #0C4728 #0C4746
triadic
#0C4728 #280C47 #47280C
tetradic
#0C4728 #0C0E47 #470C2B #47460C
square
#0C4728 #0C0E47 #470C2B #47460C
split-complementary
#0C4728 #460C47 #470C0E
monochromatic
#041A0F #041A0F #0C4728 #157B45 #1EB063

Accessibility & contrast

On white

10.78
#0C4728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#0C4728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4728
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4728#FFFFFF#000000##FFFFFF
##0C47281.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#474126
Deuteranopia (green-blind)
#403B2A
Tritanopia (blue-blind)
#00463F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #0c4728;
/* rgb */ color: rgb(12, 71, 40);
/* oklch */ color: oklch(35.3% 0.080 154.9);
Tailwind
colors: {
  custom: {
    50: '#567b62',
    500: '#0c4728',
    950: '#000000',
  },
}
SCSS
$custom: #0c4728;
$custom-light: #567b62;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4728",
  "rgb": {
    "r": 12,
    "g": 71,
    "b": 40
  },
  "hsl": {
    "h": 148.475,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.35271,
    "c": 0.07958,
    "h": 154.9
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#0C4728
secondary
#832C5A
accent
#3A98EE
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#030905
muted
#787B79

Preview Lab

Preview with #0C4728

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

Preview Lab → · Contrast checker → · Palette generator →

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