#0C5110#0C5110

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

Color values

HEX#0C5110
RGBrgb(12, 81, 16)
HSLhsl(123, 74%, 18%)
HSVhsv(123, 85%, 32%)
CMYKcmyk(85.2%, 0%, 80.2%, 68.2%)
CIE-LABlab(29.41, -34.51, 30.56)
CIE-LCHlch(29.41, 46.10, 138.47°)
OKLaboklab(38.02% -0.0935 0.0692)
OKLCHoklch(38.02% 0.116 143.5)
XYZxyz(3.1874, 6.0001, 1.4803)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5110 #510C4D
analogous
#2A510C #0C5110 #0C5132
triadic
#0C5110 #100C51 #51100C
tetradic
#0C5110 #0C2A51 #510C4D #51320C
square
#0C5110 #0C2A51 #510C4D #51320C
split-complementary
#0C5110 #320C51 #510C2A
monochromatic
#041B05 #041C05 #0C5110 #14861B #1CBC25

Accessibility & contrast

On white

9.55
#0C5110 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5110
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5110#FFFFFF#000000##FFFFFF
##0C51101.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c5110;
/* rgb */ color: rgb(12, 81, 16);
/* oklch */ color: oklch(38.0% 0.116 143.5);
Tailwind
colors: {
  custom: {
    50: '#5a8353',
    500: '#0c5110',
    950: '#000000',
  },
}
SCSS
$custom: #0c5110;
$custom-light: #5a8353;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5110",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 16
  },
  "hsl": {
    "h": 123.478,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38018,
    "c": 0.1163,
    "h": 143.5
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#0C5110
secondary
#8C2C87
accent
#37E6F1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C5110

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

Preview Lab → · Contrast checker → · Palette generator →

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