#0C450C#0C450C

#0C450C is a dark, moderate green. Relative luminance 0.044; OKLCH L 34.2% C 0.104 H 142.9°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#0C450C
RGBrgb(12, 69, 12)
HSLhsl(120, 70%, 16%)
HSVhsv(120, 83%, 27%)
CMYKcmyk(82.6%, 0%, 82.6%, 72.9%)
CIE-LABlab(24.83, -30.41, 27.61)
CIE-LCHlch(24.83, 41.08, 137.76°)
OKLaboklab(34.2% -0.0826 0.0625)
OKLCHoklch(34.2% 0.104 142.9)
XYZxyz(2.3460, 4.3607, 1.0658)
Luminance0.0436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C450C #450C45
analogous
#28450C #0C450C #0C4528
triadic
#0C450C #0C0C45 #450C0C
tetradic
#0C450C #0C2845 #450C45 #45280C
square
#0C450C #0C2845 #450C45 #45280C
split-complementary
#0C450C #280C45 #450C28
monochromatic
#051A05 #051A05 #0C450C #157915 #1EAD1E

Accessibility & contrast

On white

11.22
#0C450C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#0C450C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C450C
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C450C#FFFFFF#000000##FFFFFF
##0C450C1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473E03
Deuteranopia (green-blind)
#403912
Tritanopia (blue-blind)
#00433A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #0c450c;
/* rgb */ color: rgb(12, 69, 12);
/* oklch */ color: oklch(34.2% 0.104 142.9);
Tailwind
colors: {
  custom: {
    50: '#56794f',
    500: '#0c450c',
    950: '#000000',
  },
}
SCSS
$custom: #0c450c;
$custom-light: #56794f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c450c",
  "rgb": {
    "r": 12,
    "g": 69,
    "b": 12
  },
  "hsl": {
    "h": 120,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.342,
    "c": 0.10352,
    "h": 142.9
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#0C450C
secondary
#812C81
accent
#3BEDED
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #0C450C

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

Preview Lab → · Contrast checker → · Palette generator →

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