#0C5212#0C5212

#0C5212 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.3% C 0.116 H 143.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#0C5212
RGBrgb(12, 82, 18)
HSLhsl(125, 74%, 18%)
HSVhsv(125, 85%, 32%)
CMYKcmyk(85.4%, 0%, 78%, 67.8%)
CIE-LABlab(29.80, -34.67, 30.11)
CIE-LCHlch(29.80, 45.92, 139.03°)
OKLaboklab(38.35% -0.0938 0.0686)
OKLCHoklch(38.35% 0.116 143.8)
XYZxyz(3.2779, 6.1560, 1.5876)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5212 #520C4C
analogous
#29520C #0C5212 #0C5235
triadic
#0C5212 #120C52 #52120C
tetradic
#0C5212 #0C2952 #520C4C #52350C
square
#0C5212 #0C2952 #520C4C #52350C
split-complementary
#0C5212 #350C52 #520C29
monochromatic
#041B06 #041D06 #0C5212 #14871E #1CBD29

Accessibility & contrast

On white

9.41
#0C5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#0C5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5212
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5212#FFFFFF#000000##FFFFFF
##0C52121.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544908
Deuteranopia (green-blind)
#4C4419
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5212;
/* rgb */ color: rgb(12, 82, 18);
/* oklch */ color: oklch(38.3% 0.116 143.8);
Tailwind
colors: {
  custom: {
    50: '#5a8354',
    500: '#0c5212',
    950: '#000000',
  },
}
SCSS
$custom: #0c5212;
$custom-light: #5a8354;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5212",
  "rgb": {
    "r": 12,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 125.143,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38347,
    "c": 0.11621,
    "h": 143.8
  },
  "luminance": 0.06156
}

Semantic roles & 50–950 ramp

primary
#0C5212
secondary
#8D2C85
accent
#37E1F1
background
#F5F8F5
surface
#E9EFE8
border
#C5CAC4
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5212

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

Preview Lab → · Contrast checker → · Palette generator →

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