#0C512C#0C512C

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

Color values

HEX#0C512C
RGBrgb(12, 81, 44)
HSLhsl(148, 74%, 18%)
HSVhsv(148, 85%, 32%)
CMYKcmyk(85.2%, 0%, 45.7%, 68.2%)
CIE-LABlab(29.77, -30.19, 16.06)
CIE-LCHlch(29.77, 34.20, 152.00°)
OKLaboklab(38.44% -0.0813 0.0398)
OKLCHoklch(38.44% 0.09 153.9)
XYZxyz(3.5483, 6.1444, 3.3814)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C512C #510C31
analogous
#0E510C #0C512C #0C514E
triadic
#0C512C #2C0C51 #512C0C
tetradic
#0C512C #0C0E51 #510C31 #514E0C
square
#0C512C #0C0E51 #510C31 #514E0C
split-complementary
#0C512C #4E0C51 #510C0E
monochromatic
#041B0E #041C0F #0C512C #148649 #1CBC66

Accessibility & contrast

On white

9.42
#0C512C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#0C512C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C512C
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C512C#FFFFFF#000000##FFFFFF
##0C512C1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A29
Deuteranopia (green-blind)
#49442F
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c512c;
/* rgb */ color: rgb(12, 81, 44);
/* oklch */ color: oklch(38.4% 0.090 153.9);
Tailwind
colors: {
  custom: {
    50: '#588265',
    500: '#0c512c',
    950: '#000000',
  },
}
SCSS
$custom: #0c512c;
$custom-light: #588265;
$custom-dark: #000000;
JSON
{
  "hex": "#0c512c",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 44
  },
  "hsl": {
    "h": 147.826,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38435,
    "c": 0.09049,
    "h": 153.9
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#0C512C
secondary
#8C2C60
accent
#379BF1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #0C512C

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

Preview Lab → · Contrast checker → · Palette generator →

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