#0C512A#0C512A

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

Color values

HEX#0C512A
RGBrgb(12, 81, 42)
HSLhsl(146, 74%, 18%)
HSVhsv(146, 85%, 32%)
CMYKcmyk(85.2%, 0%, 48.1%, 68.2%)
CIE-LABlab(29.74, -30.61, 17.21)
CIE-LCHlch(29.74, 35.12, 150.65°)
OKLaboklab(38.39% -0.0823 0.0425)
OKLCHoklch(38.39% 0.093 152.7)
XYZxyz(3.5116, 6.1298, 3.1881)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C512A #510C33
analogous
#10510C #0C512A #0C514C
triadic
#0C512A #2A0C51 #512A0C
tetradic
#0C512A #0C1051 #510C33 #514C0C
square
#0C512A #0C1051 #510C33 #514C0C
split-complementary
#0C512A #4C0C51 #510C10
monochromatic
#041B0E #041C0E #0C512A #148646 #1CBC61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C512A#FFFFFF#000000##FFFFFF
##0C512A1.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)
#514927
Deuteranopia (green-blind)
#49442D
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c512a;
/* rgb */ color: rgb(12, 81, 42);
/* oklch */ color: oklch(38.4% 0.093 152.7);
Tailwind
colors: {
  custom: {
    50: '#588364',
    500: '#0c512a',
    950: '#000000',
  },
}
SCSS
$custom: #0c512a;
$custom-light: #588364;
$custom-dark: #000000;
JSON
{
  "hex": "#0c512a",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 42
  },
  "hsl": {
    "h": 146.087,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38393,
    "c": 0.09261,
    "h": 152.7
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#0C512A
secondary
#8C2C63
accent
#37A0F1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #0C512A

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

Preview Lab → · Contrast checker → · Palette generator →

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