#0C5A40#0C5A40

#0C5A40 is a dark, moderate teal. Relative luminance 0.078; OKLCH L 41.6% C 0.083 H 164.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#0C5A40
RGBrgb(12, 90, 64)
HSLhsl(160, 76%, 20%)
HSVhsv(160, 87%, 35%)
CMYKcmyk(86.7%, 0%, 28.9%, 64.7%)
CIE-LABlab(33.48, -29.32, 8.79)
CIE-LCHlch(33.48, 30.61, 163.32°)
OKLaboklab(41.63% -0.0804 0.0224)
OKLCHoklch(41.63% 0.083 164.4)
XYZxyz(4.7327, 7.7601, 6.0979)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5A40 #5A0C26
analogous
#0C5A19 #0C5A40 #0C4D5A
triadic
#0C5A40 #400C5A #5A400C
tetradic
#0C5A40 #190C5A #5A0C26 #4D5A0C
square
#0C5A40 #190C5A #5A0C26 #4D5A0C
split-complementary
#0C5A40 #5A0C4D #5A190C
monochromatic
#041B13 #05241A #0C5A40 #139066 #1AC68D

Accessibility & contrast

On white

8.23
#0C5A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#0C5A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5A40
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5A40#FFFFFF#000000##FFFFFF
##0C5A401.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#58533F
Deuteranopia (green-blind)
#4F4C42
Tritanopia (blue-blind)
#005A53
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #0c5a40;
/* rgb */ color: rgb(12, 90, 64);
/* oklch */ color: oklch(41.6% 0.083 164.4);
Tailwind
colors: {
  custom: {
    50: '#5b8974',
    500: '#0c5a40',
    950: '#000000',
  },
}
SCSS
$custom: #0c5a40;
$custom-light: #5b8974;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5a40",
  "rgb": {
    "r": 12,
    "g": 90,
    "b": 64
  },
  "hsl": {
    "h": 160,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.08346,
    "h": 164.4
  },
  "luminance": 0.07761
}

Semantic roles & 50–950 ramp

primary
#0C5A40
secondary
#952D50
accent
#3574F3
background
#F5F8F7
surface
#E9F0ED
border
#C5CBC8
text
#040B08
muted
#797C7B

Preview Lab

Preview with #0C5A40

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

Preview Lab → · Contrast checker → · Palette generator →

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