#0C5F22#0C5F22

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

Color values

HEX#0C5F22
RGBrgb(12, 95, 34)
HSLhsl(136, 78%, 21%)
HSVhsv(136, 87%, 37%)
CMYKcmyk(87.4%, 0%, 64.2%, 62.7%)
CIE-LABlab(34.76, -37.47, 27.84)
CIE-LCHlch(34.76, 46.68, 143.38°)
OKLaboklab(42.52% -0.1007 0.0657)
OKLCHoklch(42.52% 0.12 146.9)
XYZxyz(4.5322, 8.3775, 2.8912)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F22 #5F0C49
analogous
#1F5F0C #0C5F22 #0C5F4B
triadic
#0C5F22 #220C5F #5F220C
tetradic
#0C5F22 #0C1F5F #5F0C49 #5F4B0C
square
#0C5F22 #0C1F5F #5F0C49 #5F4B0C
split-complementary
#0C5F22 #4B0C5F #5F0C1F
monochromatic
#031B0A #05290F #0C5F22 #139535 #1ACC49

Accessibility & contrast

On white

7.85
#0C5F22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#0C5F22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5F22
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F22#FFFFFF#000000##FFFFFF
##0C5F221.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60561C
Deuteranopia (green-blind)
#574F27
Tritanopia (blue-blind)
#005D52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0c5f22;
/* rgb */ color: rgb(12, 95, 34);
/* oklch */ color: oklch(42.5% 0.120 146.9);
Tailwind
colors: {
  custom: {
    50: '#5d8d5f',
    500: '#0c5f22',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f22;
$custom-light: #5d8d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f22",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 34
  },
  "hsl": {
    "h": 135.904,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42515,
    "c": 0.12023,
    "h": 146.9
  },
  "luminance": 0.08378
}

Semantic roles & 50–950 ramp

primary
#0C5F22
secondary
#992D7D
accent
#34C1F4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C05
muted
#797D79

Preview Lab

Preview with #0C5F22

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

Preview Lab → · Contrast checker → · Palette generator →

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