#0C5111#0C5111

#0C5111 is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.0% C 0.116 H 143.7°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#0C5111
RGBrgb(12, 81, 17)
HSLhsl(124, 74%, 18%)
HSVhsv(124, 85%, 32%)
CMYKcmyk(85.2%, 0%, 79%, 68.2%)
CIE-LABlab(29.42, -34.41, 30.15)
CIE-LCHlch(29.42, 45.75, 138.78°)
OKLaboklab(38.03% -0.0931 0.0685)
OKLCHoklch(38.03% 0.116 143.7)
XYZxyz(3.1950, 6.0031, 1.5205)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5111 #510C4C
analogous
#29510C #0C5111 #0C5133
triadic
#0C5111 #110C51 #51110C
tetradic
#0C5111 #0C2951 #510C4C #51330C
square
#0C5111 #0C2951 #510C4C #51330C
split-complementary
#0C5111 #330C51 #510C29
monochromatic
#041B06 #041C06 #0C5111 #14861C #1CBC27

Accessibility & contrast

On white

9.54
#0C5111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#0C5111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5111
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5111#FFFFFF#000000##FFFFFF
##0C51111.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534806
Deuteranopia (green-blind)
#4B4318
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c5111;
/* rgb */ color: rgb(12, 81, 17);
/* oklch */ color: oklch(38.0% 0.116 143.7);
Tailwind
colors: {
  custom: {
    50: '#5a8353',
    500: '#0c5111',
    950: '#000000',
  },
}
SCSS
$custom: #0c5111;
$custom-light: #5a8353;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5111",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 124.348,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38027,
    "c": 0.11563,
    "h": 143.7
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#0C5111
secondary
#8C2C85
accent
#37E3F1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C5111

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

Preview Lab → · Contrast checker → · Palette generator →

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