#0C5135#0C5135

#0C5135 is a dark, moderate teal. Relative luminance 0.062; OKLCH L 38.6% C 0.081 H 160.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#0C5135
RGBrgb(12, 81, 53)
HSLhsl(156, 74%, 18%)
HSVhsv(156, 85%, 32%)
CMYKcmyk(85.2%, 0%, 34.6%, 68.2%)
CIE-LABlab(29.96, -28.09, 10.76)
CIE-LCHlch(29.96, 30.08, 159.04°)
OKLaboklab(38.65% -0.0764 0.0273)
OKLCHoklch(38.65% 0.081 160.4)
XYZxyz(3.7363, 6.2196, 4.3711)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5135 #510C28
analogous
#0C5112 #0C5135 #0C4A51
triadic
#0C5135 #350C51 #51350C
tetradic
#0C5135 #120C51 #510C28 #4A510C
square
#0C5135 #120C51 #510C28 #4A510C
split-complementary
#0C5135 #510C4A #51120C
monochromatic
#041B11 #041C12 #0C5135 #148658 #1CBC7B

Accessibility & contrast

On white

9.36
#0C5135 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#0C5135 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5135
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5135#FFFFFF#000000##FFFFFF
##0C51351.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504A33
Deuteranopia (green-blind)
#484437
Tritanopia (blue-blind)
#00514A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5135;
/* rgb */ color: rgb(12, 81, 53);
/* oklch */ color: oklch(38.6% 0.081 160.4);
Tailwind
colors: {
  custom: {
    50: '#58826c',
    500: '#0c5135',
    950: '#000000',
  },
}
SCSS
$custom: #0c5135;
$custom-light: #58826c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5135",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 53
  },
  "hsl": {
    "h": 155.652,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38649,
    "c": 0.0811,
    "h": 160.4
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#0C5135
secondary
#8C2C53
accent
#3782F1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A07
muted
#797C7A

Preview Lab

Preview with #0C5135

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

Preview Lab → · Contrast checker → · Palette generator →

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