#0C512B#0C512B

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

Color values

HEX#0C512B
RGBrgb(12, 81, 43)
HSLhsl(147, 74%, 18%)
HSVhsv(147, 85%, 32%)
CMYKcmyk(85.2%, 0%, 46.9%, 68.2%)
CIE-LABlab(29.76, -30.40, 16.64)
CIE-LCHlch(29.76, 34.66, 151.32°)
OKLaboklab(38.41% -0.0818 0.0411)
OKLCHoklch(38.41% 0.092 153.3)
XYZxyz(3.5298, 6.1370, 3.2836)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C512B #510C32
analogous
#0F510C #0C512B #0C514D
triadic
#0C512B #2B0C51 #512B0C
tetradic
#0C512B #0C0F51 #510C32 #514D0C
square
#0C512B #0C0F51 #510C32 #514D0C
split-complementary
#0C512B #4D0C51 #510C0F
monochromatic
#041B0E #041C0F #0C512B #148647 #1CBC64

Accessibility & contrast

On white

9.43
#0C512B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C512B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C512B#FFFFFF#000000##FFFFFF
##0C512B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514928
Deuteranopia (green-blind)
#49442E
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c512b;
/* rgb */ color: rgb(12, 81, 43);
/* oklch */ color: oklch(38.4% 0.092 153.3);
Tailwind
colors: {
  custom: {
    50: '#588265',
    500: '#0c512b',
    950: '#000000',
  },
}
SCSS
$custom: #0c512b;
$custom-light: #588265;
$custom-dark: #000000;
JSON
{
  "hex": "#0c512b",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 43
  },
  "hsl": {
    "h": 146.957,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38413,
    "c": 0.09154,
    "h": 153.3
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#0C512B
secondary
#8C2C61
accent
#379DF1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #0C512B

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

Preview Lab → · Contrast checker → · Palette generator →

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