#0C4822#0C4822

#0C4822 is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.5% C 0.088 H 150.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#0C4822
RGBrgb(12, 72, 34)
HSLhsl(142, 71%, 16%)
HSVhsv(142, 83%, 28%)
CMYKcmyk(83.3%, 0%, 52.8%, 71.8%)
CIE-LABlab(26.24, -28.43, 17.54)
CIE-LCHlch(26.24, 33.41, 148.32°)
OKLaboklab(35.46% -0.0764 0.0429)
OKLCHoklch(35.46% 0.088 150.7)
XYZxyz(2.7575, 4.8281, 2.2996)
Luminance0.0483 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4822 #480C32
analogous
#14480C #0C4822 #0C4840
triadic
#0C4822 #220C48 #48220C
tetradic
#0C4822 #0C1448 #480C32 #48400C
square
#0C4822 #0C1448 #480C32 #48400C
split-complementary
#0C4822 #400C48 #480C14
monochromatic
#041A0C #041A0C #0C4822 #157C3B #1DB154

Accessibility & contrast

On white

10.68
#0C4822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4822
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4822#FFFFFF#000000##FFFFFF
##0C48221.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48411F
Deuteranopia (green-blind)
#413C25
Tritanopia (blue-blind)
#00473F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c4822;
/* rgb */ color: rgb(12, 72, 34);
/* oklch */ color: oklch(35.5% 0.088 150.7);
Tailwind
colors: {
  custom: {
    50: '#567c5e',
    500: '#0c4822',
    950: '#000000',
  },
}
SCSS
$custom: #0c4822;
$custom-light: #567c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4822",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 34
  },
  "hsl": {
    "h": 142,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35455,
    "c": 0.08763,
    "h": 150.7
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#0C4822
secondary
#842C64
accent
#3AACEE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#030904
muted
#787B79

Preview Lab

Preview with #0C4822

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

Preview Lab → · Contrast checker → · Palette generator →

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