#0C5F1F#0C5F1F

#0C5F1F is a dark, vivid green. Relative luminance 0.084; OKLCH L 42.5% C 0.123 H 146.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#0C5F1F
RGBrgb(12, 95, 31)
HSLhsl(134, 78%, 21%)
HSVhsv(134, 87%, 37%)
CMYKcmyk(87.4%, 0%, 67.4%, 62.7%)
CIE-LABlab(34.72, -37.88, 29.33)
CIE-LCHlch(34.72, 47.90, 142.25°)
OKLaboklab(42.48% -0.1019 0.0685)
OKLCHoklch(42.48% 0.123 146.1)
XYZxyz(4.4908, 8.3610, 2.6732)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F1F #5F0C4C
analogous
#225F0C #0C5F1F #0C5F48
triadic
#0C5F1F #1F0C5F #5F1F0C
tetradic
#0C5F1F #0C225F #5F0C4C #5F480C
square
#0C5F1F #0C225F #5F0C4C #5F480C
split-complementary
#0C5F1F #480C5F #5F0C22
monochromatic
#031B09 #05290D #0C5F1F #139531 #1ACC42

Accessibility & contrast

On white

7.86
#0C5F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5F1F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F1F#FFFFFF#000000##FFFFFF
##0C5F1F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605518
Deuteranopia (green-blind)
#584F25
Tritanopia (blue-blind)
#005D51
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0c5f1f;
/* rgb */ color: rgb(12, 95, 31);
/* oklch */ color: oklch(42.5% 0.123 146.1);
Tailwind
colors: {
  custom: {
    50: '#5d8d5d',
    500: '#0c5f1f',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f1f;
$custom-light: #5d8d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f1f",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 31
  },
  "hsl": {
    "h": 133.735,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42477,
    "c": 0.12284,
    "h": 146.1
  },
  "luminance": 0.08362
}

Semantic roles & 50–950 ramp

primary
#0C5F1F
secondary
#992D81
accent
#34C8F4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0C5F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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