#0C512D#0C512D

#0C512D is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.5% C 0.089 H 154.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#0C512D
RGBrgb(12, 81, 45)
HSLhsl(149, 74%, 18%)
HSVhsv(149, 85%, 32%)
CMYKcmyk(85.2%, 0%, 44.4%, 68.2%)
CIE-LABlab(29.79, -29.98, 15.47)
CIE-LCHlch(29.79, 33.73, 152.70°)
OKLaboklab(38.46% -0.0807 0.0385)
OKLCHoklch(38.46% 0.089 154.5)
XYZxyz(3.5674, 6.1521, 3.4816)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C512D #510C30
analogous
#0D510C #0C512D #0C514F
triadic
#0C512D #2D0C51 #512D0C
tetradic
#0C512D #0C0D51 #510C30 #514F0C
square
#0C512D #0C0D51 #510C30 #514F0C
split-complementary
#0C512D #4F0C51 #510C0D
monochromatic
#041B0F #041C0F #0C512D #14864B #1CBC68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C512D#FFFFFF#000000##FFFFFF
##0C512D1.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)
#514A2A
Deuteranopia (green-blind)
#49442F
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c512d;
/* rgb */ color: rgb(12, 81, 45);
/* oklch */ color: oklch(38.5% 0.089 154.5);
Tailwind
colors: {
  custom: {
    50: '#588266',
    500: '#0c512d',
    950: '#000000',
  },
}
SCSS
$custom: #0c512d;
$custom-light: #588266;
$custom-dark: #000000;
JSON
{
  "hex": "#0c512d",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 45
  },
  "hsl": {
    "h": 148.696,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38457,
    "c": 0.08943,
    "h": 154.5
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#0C512D
secondary
#8C2C5E
accent
#3798F1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C512D

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

Preview Lab → · Contrast checker → · Palette generator →

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