#0C5F23#0C5F23

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

Color values

HEX#0C5F23
RGBrgb(12, 95, 35)
HSLhsl(137, 78%, 21%)
HSVhsv(137, 87%, 37%)
CMYKcmyk(87.4%, 0%, 63.2%, 62.7%)
CIE-LABlab(34.77, -37.33, 27.34)
CIE-LCHlch(34.77, 46.27, 143.78°)
OKLaboklab(42.53% -0.1003 0.0647)
OKLCHoklch(42.53% 0.119 147.2)
XYZxyz(4.5468, 8.3834, 2.9683)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F23 #5F0C48
analogous
#1E5F0C #0C5F23 #0C5F4C
triadic
#0C5F23 #230C5F #5F230C
tetradic
#0C5F23 #0C1E5F #5F0C48 #5F4C0C
square
#0C5F23 #0C1E5F #5F0C48 #5F4C0C
split-complementary
#0C5F23 #4C0C5F #5F0C1E
monochromatic
#031B0A #05290F #0C5F23 #139537 #1ACC4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C5F23#FFFFFF#000000##FFFFFF
##0C5F231.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)
#60561D
Deuteranopia (green-blind)
#574F28
Tritanopia (blue-blind)
#005D52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0c5f23;
/* rgb */ color: rgb(12, 95, 35);
/* oklch */ color: oklch(42.5% 0.119 147.2);
Tailwind
colors: {
  custom: {
    50: '#5d8d60',
    500: '#0c5f23',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f23;
$custom-light: #5d8d60;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f23",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 35
  },
  "hsl": {
    "h": 136.627,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42529,
    "c": 0.11934,
    "h": 147.2
  },
  "luminance": 0.08384
}

Semantic roles & 50–950 ramp

primary
#0C5F23
secondary
#992D7B
accent
#34BFF4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C05
muted
#797D79

Preview Lab

Preview with #0C5F23

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

Preview Lab → · Contrast checker → · Palette generator →

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