#0C5F42#0C5F42

#0C5F42 is a dark, moderate teal. Relative luminance 0.087; OKLCH L 43.2% C 0.089 H 163.1°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#0C5F42
RGBrgb(12, 95, 66)
HSLhsl(159, 78%, 21%)
HSVhsv(159, 87%, 37%)
CMYKcmyk(87.4%, 0%, 30.5%, 62.7%)
CIE-LABlab(35.31, -31.04, 10.11)
CIE-LCHlch(35.31, 32.64, 161.96°)
OKLaboklab(43.16% -0.0848 0.0257)
OKLCHoklch(43.16% 0.089 163.1)
XYZxyz(5.2266, 8.6553, 6.5484)
Luminance0.0866 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F42 #5F0C29
analogous
#0C5F18 #0C5F42 #0C525F
triadic
#0C5F42 #420C5F #5F420C
tetradic
#0C5F42 #180C5F #5F0C29 #525F0C
square
#0C5F42 #180C5F #5F0C29 #525F0C
split-complementary
#0C5F42 #5F0C52 #5F180C
monochromatic
#031B13 #05291C #0C5F42 #139568 #1ACC8D

Accessibility & contrast

On white

7.69
#0C5F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5F42
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F42#FFFFFF#000000##FFFFFF
##0C5F421.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c5f42;
/* rgb */ color: rgb(12, 95, 66);
/* oklch */ color: oklch(43.2% 0.089 163.1);
Tailwind
colors: {
  custom: {
    50: '#5c8d76',
    500: '#0c5f42',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f42;
$custom-light: #5c8d76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f42",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 66
  },
  "hsl": {
    "h": 159.036,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.43156,
    "c": 0.08861,
    "h": 163.1
  },
  "luminance": 0.08656
}

Semantic roles & 50–950 ramp

primary
#0C5F42
secondary
#992D53
accent
#3477F4
background
#F5F8F7
surface
#E9F0ED
border
#C5CBC8
text
#050C08
muted
#797D7B

Preview Lab

Preview with #0C5F42

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

Preview Lab → · Contrast checker → · Palette generator →

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