#0C512E#0C512E

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

Color values

HEX#0C512E
RGBrgb(12, 81, 46)
HSLhsl(150, 74%, 18%)
HSVhsv(150, 85%, 32%)
CMYKcmyk(85.2%, 0%, 43.2%, 68.2%)
CIE-LABlab(29.81, -29.76, 14.89)
CIE-LCHlch(29.81, 33.27, 153.42°)
OKLaboklab(38.48% -0.0802 0.0371)
OKLCHoklch(38.48% 0.088 155.2)
XYZxyz(3.5868, 6.1598, 3.5842)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C512E #510C2F
analogous
#0C510C #0C512E #0C5150
triadic
#0C512E #2E0C51 #512E0C
tetradic
#0C512E #0C0C51 #510C2F #51500C
square
#0C512E #0C0C51 #510C2F #51500C
split-complementary
#0C512E #500C51 #510C0C
monochromatic
#041B0F #041C10 #0C512E #14864C #1CBC6B

Accessibility & contrast

On white

9.41
#0C512E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C512E
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C512E#FFFFFF#000000##FFFFFF
##0C512E1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A2C
Deuteranopia (green-blind)
#494430
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c512e;
/* rgb */ color: rgb(12, 81, 46);
/* oklch */ color: oklch(38.5% 0.088 155.2);
Tailwind
colors: {
  custom: {
    50: '#588267',
    500: '#0c512e',
    950: '#000000',
  },
}
SCSS
$custom: #0c512e;
$custom-light: #588267;
$custom-dark: #000000;
JSON
{
  "hex": "#0c512e",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 46
  },
  "hsl": {
    "h": 149.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38479,
    "c": 0.08836,
    "h": 155.2
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#0C512E
secondary
#8C2C5D
accent
#3795F1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C512E

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

Preview Lab → · Contrast checker → · Palette generator →

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