#0C5138#0C5138

#0C5138 is a dark, moderate teal. Relative luminance 0.062; OKLCH L 38.7% C 0.078 H 163.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#0C5138
RGBrgb(12, 81, 56)
HSLhsl(158, 74%, 18%)
HSVhsv(158, 85%, 32%)
CMYKcmyk(85.2%, 0%, 30.9%, 68.2%)
CIE-LABlab(30.03, -27.32, 8.98)
CIE-LCHlch(30.03, 28.76, 161.81°)
OKLaboklab(38.73% -0.0747 0.0229)
OKLCHoklch(38.73% 0.078 163)
XYZxyz(3.8074, 6.2481, 4.7459)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5138 #510C25
analogous
#0C5115 #0C5138 #0C4751
triadic
#0C5138 #380C51 #51380C
tetradic
#0C5138 #150C51 #510C25 #47510C
square
#0C5138 #150C51 #510C25 #47510C
split-complementary
#0C5138 #510C47 #51150C
monochromatic
#041B12 #041C13 #0C5138 #14865D #1CBC82

Accessibility & contrast

On white

9.33
#0C5138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#0C5138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5138
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5138#FFFFFF#000000##FFFFFF
##0C51381.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4A37
Deuteranopia (green-blind)
#47443A
Tritanopia (blue-blind)
#00514A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5138;
/* rgb */ color: rgb(12, 81, 56);
/* oklch */ color: oklch(38.7% 0.078 163.0);
Tailwind
colors: {
  custom: {
    50: '#58826e',
    500: '#0c5138',
    950: '#000000',
  },
}
SCSS
$custom: #0c5138;
$custom-light: #58826e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5138",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 56
  },
  "hsl": {
    "h": 158.261,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.3873,
    "c": 0.07814,
    "h": 163
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

primary
#0C5138
secondary
#8C2C4F
accent
#377AF1
background
#F5F8F6
surface
#E9EFEC
border
#C5CAC7
text
#040A07
muted
#797C7A

Preview Lab

Preview with #0C5138

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

Preview Lab → · Contrast checker → · Palette generator →

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