#0C5F40#0C5F40

#0C5F40 is a dark, moderate teal. Relative luminance 0.086; OKLCH L 43.1% C 0.091 H 161.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#0C5F40
RGBrgb(12, 95, 64)
HSLhsl(158, 78%, 21%)
HSVhsv(158, 87%, 37%)
CMYKcmyk(87.4%, 0%, 32.6%, 62.7%)
CIE-LABlab(35.27, -31.54, 11.27)
CIE-LCHlch(35.27, 33.50, 160.34°)
OKLaboklab(43.1% -0.0859 0.0286)
OKLCHoklch(43.1% 0.091 161.6)
XYZxyz(5.1687, 8.6321, 6.2432)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F40 #5F0C2B
analogous
#0C5F16 #0C5F40 #0C545F
triadic
#0C5F40 #400C5F #5F400C
tetradic
#0C5F40 #160C5F #5F0C2B #545F0C
square
#0C5F40 #160C5F #5F0C2B #545F0C
split-complementary
#0C5F40 #5F0C54 #5F160C
monochromatic
#031B12 #05291B #0C5F40 #139565 #1ACC89

Accessibility & contrast

On white

7.70
#0C5F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#0C5F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5F40
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F40#FFFFFF#000000##FFFFFF
##0C5F401.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D573E
Deuteranopia (green-blind)
#545042
Tritanopia (blue-blind)
#005F57
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #0c5f40;
/* rgb */ color: rgb(12, 95, 64);
/* oklch */ color: oklch(43.1% 0.091 161.6);
Tailwind
colors: {
  custom: {
    50: '#5c8d75',
    500: '#0c5f40',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f40;
$custom-light: #5c8d75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f40",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 64
  },
  "hsl": {
    "h": 157.59,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.43103,
    "c": 0.09051,
    "h": 161.6
  },
  "luminance": 0.08633
}

Semantic roles & 50–950 ramp

primary
#0C5F40
secondary
#992D56
accent
#347CF4
background
#F5F8F7
surface
#E9F0ED
border
#C5CBC8
text
#050C08
muted
#797D7B

Preview Lab

Preview with #0C5F40

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

Preview Lab → · Contrast checker → · Palette generator →

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