#0C5B40#0C5B40

#0C5B40 is a dark, moderate teal. Relative luminance 0.079; OKLCH L 41.9% C 0.085 H 163.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#0C5B40
RGBrgb(12, 91, 64)
HSLhsl(159, 77%, 20%)
HSVhsv(159, 87%, 36%)
CMYKcmyk(86.8%, 0%, 29.7%, 64.3%)
CIE-LABlab(33.84, -29.77, 9.29)
CIE-LCHlch(33.84, 31.19, 162.67°)
OKLaboklab(41.93% -0.0815 0.0237)
OKLCHoklch(41.93% 0.085 163.8)
XYZxyz(4.8176, 7.9299, 6.1262)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5B40 #5B0C27
analogous
#0C5B19 #0C5B40 #0C4E5B
triadic
#0C5B40 #400C5B #5B400C
tetradic
#0C5B40 #190C5B #5B0C27 #4E5B0C
square
#0C5B40 #190C5B #5B0C27 #4E5B0C
split-complementary
#0C5B40 #5B0C4E #5B190C
monochromatic
#041B13 #05251A #0C5B40 #139166 #1AC78C

Accessibility & contrast

On white

8.12
#0C5B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#0C5B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5B40
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5B40#FFFFFF#000000##FFFFFF
##0C5B401.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59543E
Deuteranopia (green-blind)
#504D42
Tritanopia (blue-blind)
#005B54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #0c5b40;
/* rgb */ color: rgb(12, 91, 64);
/* oklch */ color: oklch(41.9% 0.085 163.8);
Tailwind
colors: {
  custom: {
    50: '#5b8a74',
    500: '#0c5b40',
    950: '#000000',
  },
}
SCSS
$custom: #0c5b40;
$custom-light: #5b8a74;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5b40",
  "rgb": {
    "r": 12,
    "g": 91,
    "b": 64
  },
  "hsl": {
    "h": 159.494,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41925,
    "c": 0.08486,
    "h": 163.8
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#0C5B40
secondary
#962D51
accent
#3576F3
background
#F5F8F7
surface
#E9F0ED
border
#C5CBC8
text
#050C08
muted
#797D7B

Preview Lab

Preview with #0C5B40

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

Preview Lab → · Contrast checker → · Palette generator →

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