#0C5129#0C5129

#0C5129 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.094 H 152.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#0C5129
RGBrgb(12, 81, 41)
HSLhsl(145, 74%, 18%)
HSVhsv(145, 85%, 32%)
CMYKcmyk(85.2%, 0%, 49.4%, 68.2%)
CIE-LABlab(29.72, -30.82, 17.79)
CIE-LCHlch(29.72, 35.58, 150.00°)
OKLaboklab(38.37% -0.0828 0.0437)
OKLCHoklch(38.37% 0.094 152.2)
XYZxyz(3.4940, 6.1227, 3.0950)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5129 #510C34
analogous
#11510C #0C5129 #0C514B
triadic
#0C5129 #290C51 #51290C
tetradic
#0C5129 #0C1151 #510C34 #514B0C
square
#0C5129 #0C1151 #510C34 #514B0C
split-complementary
#0C5129 #4B0C51 #510C11
monochromatic
#041B0D #041C0E #0C5129 #148644 #1CBC5F

Accessibility & contrast

On white

9.44
#0C5129 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#0C5129 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5129
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5129#FFFFFF#000000##FFFFFF
##0C51291.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514926
Deuteranopia (green-blind)
#49442C
Tritanopia (blue-blind)
#005047
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5129;
/* rgb */ color: rgb(12, 81, 41);
/* oklch */ color: oklch(38.4% 0.094 152.2);
Tailwind
colors: {
  custom: {
    50: '#588363',
    500: '#0c5129',
    950: '#000000',
  },
}
SCSS
$custom: #0c5129;
$custom-light: #588363;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5129",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 41
  },
  "hsl": {
    "h": 145.217,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38372,
    "c": 0.09367,
    "h": 152.2
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#0C5129
secondary
#8C2C64
accent
#37A3F1
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C5129

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

Preview Lab → · Contrast checker → · Palette generator →

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