#0C4813#0C4813

#0C4813 is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.2% C 0.102 H 144.5°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#0C4813
RGBrgb(12, 72, 19)
HSLhsl(127, 71%, 16%)
HSVhsv(127, 83%, 28%)
CMYKcmyk(83.3%, 0%, 73.6%, 71.8%)
CIE-LABlab(26.04, -30.81, 25.64)
CIE-LCHlch(26.04, 40.09, 140.23°)
OKLaboklab(35.22% -0.0833 0.0593)
OKLCHoklch(35.22% 0.102 144.5)
XYZxyz(2.5864, 4.7596, 1.3984)
Luminance0.0476 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4813 #480C41
analogous
#23480C #0C4813 #0C4831
triadic
#0C4813 #130C48 #48130C
tetradic
#0C4813 #0C2348 #480C41 #48310C
square
#0C4813 #0C2348 #480C41 #48310C
split-complementary
#0C4813 #310C48 #480C23
monochromatic
#041A07 #041A07 #0C4813 #157C21 #1DB12F

Accessibility & contrast

On white

10.76
#0C4813 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4813
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4813#FFFFFF#000000##FFFFFF
##0C48131.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400C
Deuteranopia (green-blind)
#433C18
Tritanopia (blue-blind)
#00463D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4813;
/* rgb */ color: rgb(12, 72, 19);
/* oklch */ color: oklch(35.2% 0.102 144.5);
Tailwind
colors: {
  custom: {
    50: '#577c53',
    500: '#0c4813',
    950: '#000000',
  },
}
SCSS
$custom: #0c4813;
$custom-light: #577c53;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4813",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 19
  },
  "hsl": {
    "h": 127,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35224,
    "c": 0.10223,
    "h": 144.5
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#0C4813
secondary
#842C7A
accent
#3AD9EE
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040902
muted
#797B78

Preview Lab

Preview with #0C4813

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

Preview Lab → · Contrast checker → · Palette generator →

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