#0C4828#0C4828

#0C4828 is a dark, moderate green. Relative luminance 0.049; OKLCH L 35.6% C 0.081 H 154.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#0C4828
RGBrgb(12, 72, 40)
HSLhsl(148, 71%, 16%)
HSVhsv(148, 83%, 28%)
CMYKcmyk(83.3%, 0%, 44.4%, 71.8%)
CIE-LABlab(26.35, -27.17, 14.01)
CIE-LCHlch(26.35, 30.57, 152.72°)
OKLaboklab(35.58% -0.0732 0.0349)
OKLCHoklch(35.58% 0.081 154.5)
XYZxyz(2.8517, 4.8658, 2.7960)
Luminance0.0487 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4828 #480C2C
analogous
#0E480C #0C4828 #0C4846
triadic
#0C4828 #280C48 #48280C
tetradic
#0C4828 #0C0E48 #480C2C #48460C
square
#0C4828 #0C0E48 #480C2C #48460C
split-complementary
#0C4828 #460C48 #480C0E
monochromatic
#041A0F #041A0F #0C4828 #157C45 #1DB162

Accessibility & contrast

On white

10.64
#0C4828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#0C4828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4828
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4828#FFFFFF#000000##FFFFFF
##0C48281.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484126
Deuteranopia (green-blind)
#413C2A
Tritanopia (blue-blind)
#004740
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4828;
/* rgb */ color: rgb(12, 72, 40);
/* oklch */ color: oklch(35.6% 0.081 154.5);
Tailwind
colors: {
  custom: {
    50: '#567c62',
    500: '#0c4828',
    950: '#000000',
  },
}
SCSS
$custom: #0c4828;
$custom-light: #567c62;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4828",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 40
  },
  "hsl": {
    "h": 148,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35581,
    "c": 0.08113,
    "h": 154.5
  },
  "luminance": 0.04866
}

Semantic roles & 50–950 ramp

primary
#0C4828
secondary
#842C5B
accent
#3A9AEE
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#030905
muted
#787B79

Preview Lab

Preview with #0C4828

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

Preview Lab → · Contrast checker → · Palette generator →

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