#0C5F1B#0C5F1B

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

Color values

HEX#0C5F1B
RGBrgb(12, 95, 27)
HSLhsl(131, 78%, 21%)
HSVhsv(131, 87%, 37%)
CMYKcmyk(87.4%, 0%, 71.6%, 62.7%)
CIE-LABlab(34.68, -38.37, 31.21)
CIE-LCHlch(34.68, 49.46, 140.88°)
OKLaboklab(42.43% -0.1034 0.0721)
OKLCHoklch(42.43% 0.126 145.1)
XYZxyz(4.4413, 8.3412, 2.4126)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F1B #5F0C50
analogous
#265F0C #0C5F1B #0C5F44
triadic
#0C5F1B #1B0C5F #5F1B0C
tetradic
#0C5F1B #0C265F #5F0C50 #5F440C
square
#0C5F1B #0C265F #5F0C50 #5F440C
split-complementary
#0C5F1B #440C5F #5F0C26
monochromatic
#031B08 #05290C #0C5F1B #13952A #1ACC3A

Accessibility & contrast

On white

7.87
#0C5F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#0C5F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5F1B
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F1B#FFFFFF#000000##FFFFFF
##0C5F1B1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615512
Deuteranopia (green-blind)
#584F21
Tritanopia (blue-blind)
#005C51
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0c5f1b;
/* rgb */ color: rgb(12, 95, 27);
/* oklch */ color: oklch(42.4% 0.126 145.1);
Tailwind
colors: {
  custom: {
    50: '#5d8d5b',
    500: '#0c5f1b',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f1b;
$custom-light: #5d8d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f1b",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 27
  },
  "hsl": {
    "h": 130.843,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.4243,
    "c": 0.12608,
    "h": 145.1
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#0C5F1B
secondary
#992D86
accent
#34D1F4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0C5F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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