#0C4820#0C4820

#0C4820 is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.4% C 0.090 H 149.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#0C4820
RGBrgb(12, 72, 32)
HSLhsl(140, 71%, 16%)
HSVhsv(140, 83%, 28%)
CMYKcmyk(83.3%, 0%, 55.6%, 71.8%)
CIE-LABlab(26.21, -28.81, 18.69)
CIE-LCHlch(26.21, 34.34, 147.02°)
OKLaboklab(35.42% -0.0774 0.0454)
OKLCHoklch(35.42% 0.09 149.6)
XYZxyz(2.7295, 4.8169, 2.1521)
Luminance0.0482 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4820 #480C34
analogous
#16480C #0C4820 #0C483E
triadic
#0C4820 #200C48 #48200C
tetradic
#0C4820 #0C1648 #480C34 #483E0C
square
#0C4820 #0C1648 #480C34 #483E0C
split-complementary
#0C4820 #3E0C48 #480C16
monochromatic
#041A0C #041A0C #0C4820 #157C37 #1DB14F

Accessibility & contrast

On white

10.70
#0C4820 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#0C4820 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4820
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4820#FFFFFF#000000##FFFFFF
##0C48201.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49411D
Deuteranopia (green-blind)
#423C23
Tritanopia (blue-blind)
#00473F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4820;
/* rgb */ color: rgb(12, 72, 32);
/* oklch */ color: oklch(35.4% 0.090 149.6);
Tailwind
colors: {
  custom: {
    50: '#567c5c',
    500: '#0c4820',
    950: '#000000',
  },
}
SCSS
$custom: #0c4820;
$custom-light: #567c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4820",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 32
  },
  "hsl": {
    "h": 140,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35417,
    "c": 0.08977,
    "h": 149.6
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

primary
#0C4820
secondary
#842C67
accent
#3AB2EE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#030904
muted
#787B79

Preview Lab

Preview with #0C4820

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

Preview Lab → · Contrast checker → · Palette generator →

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