#0C5F16#0C5F16

#0C5F16 is a dark, vivid green. Relative luminance 0.083; OKLCH L 42.4% C 0.130 H 144.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#0C5F16
RGBrgb(12, 95, 22)
HSLhsl(127, 78%, 21%)
HSVhsv(127, 87%, 37%)
CMYKcmyk(87.4%, 0%, 76.8%, 62.7%)
CIE-LABlab(34.64, -38.91, 33.39)
CIE-LCHlch(34.64, 51.27, 139.36°)
OKLaboklab(42.38% -0.1051 0.076)
OKLCHoklch(42.38% 0.13 144.1)
XYZxyz(4.3883, 8.3200, 2.1335)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F16 #5F0C55
analogous
#2B5F0C #0C5F16 #0C5F3F
triadic
#0C5F16 #160C5F #5F160C
tetradic
#0C5F16 #0C2B5F #5F0C55 #5F3F0C
square
#0C5F16 #0C2B5F #5F0C55 #5F3F0C
split-complementary
#0C5F16 #3F0C5F #5F0C2B
monochromatic
#031B06 #052909 #0C5F16 #139523 #1ACC2F

Accessibility & contrast

On white

7.88
#0C5F16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#0C5F16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5F16
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F16#FFFFFF#000000##FFFFFF
##0C5F161.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550A
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#005C51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #0c5f16;
/* rgb */ color: rgb(12, 95, 22);
/* oklch */ color: oklch(42.4% 0.130 144.1);
Tailwind
colors: {
  custom: {
    50: '#5e8d58',
    500: '#0c5f16',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f16;
$custom-light: #5e8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f16",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 22
  },
  "hsl": {
    "h": 127.229,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42381,
    "c": 0.12972,
    "h": 144.1
  },
  "luminance": 0.08321
}

Semantic roles & 50–950 ramp

primary
#0C5F16
secondary
#992D8C
accent
#34DDF4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C03
muted
#797D78

Preview Lab

Preview with #0C5F16

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

Preview Lab → · Contrast checker → · Palette generator →

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