#0C512F#0C512F

#0C512F is a dark, moderate teal. Relative luminance 0.062; OKLCH L 38.5% C 0.087 H 155.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#0C512F
RGBrgb(12, 81, 47)
HSLhsl(150, 74%, 18%)
HSVhsv(150, 85%, 32%)
CMYKcmyk(85.2%, 0%, 42%, 68.2%)
CIE-LABlab(29.83, -29.53, 14.30)
CIE-LCHlch(29.83, 32.81, 154.16°)
OKLaboklab(38.5% -0.0796 0.0357)
OKLCHoklch(38.5% 0.087 155.8)
XYZxyz(3.6068, 6.1678, 3.6892)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C512F #510C2E
analogous
#0C510C #0C512F #0C5051
triadic
#0C512F #2F0C51 #512F0C
tetradic
#0C512F #0C0C51 #510C2E #50510C
square
#0C512F #0C0C51 #510C2E #50510C
split-complementary
#0C512F #510C50 #510C0C
monochromatic
#041B0F #041C10 #0C512F #14864E #1CBC6D

Accessibility & contrast

On white

9.40
#0C512F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C512F
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C512F#FFFFFF#000000##FFFFFF
##0C512F1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c512f;
/* rgb */ color: rgb(12, 81, 47);
/* oklch */ color: oklch(38.5% 0.087 155.8);
Tailwind
colors: {
  custom: {
    50: '#588267',
    500: '#0c512f',
    950: '#000000',
  },
}
SCSS
$custom: #0c512f;
$custom-light: #588267;
$custom-dark: #000000;
JSON
{
  "hex": "#0c512f",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 47
  },
  "hsl": {
    "h": 150.435,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38502,
    "c": 0.08731,
    "h": 155.8
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#0C512F
secondary
#8C2C5C
accent
#3793F1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #0C512F

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

Preview Lab → · Contrast checker → · Palette generator →

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