#12787F#12787F

#12787F is a mid, moderate teal. Relative luminance 0.151; OKLCH L 52.3% C 0.085 H 202.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#12787F
RGBrgb(18, 120, 127)
HSLhsl(184, 75%, 28%)
HSVhsv(184, 86%, 50%)
CMYKcmyk(85.8%, 5.5%, 0%, 50.2%)
CIE-LABlab(45.76, -24.07, -11.62)
CIE-LCHlch(45.76, 26.73, 205.76°)
OKLaboklab(52.32% -0.0786 -0.0323)
OKLCHoklch(52.32% 0.085 202.3)
XYZxyz(10.7949, 15.0925, 22.4187)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12787F #7F1912
analogous
#127F4F #12787F #12417F
triadic
#12787F #7F1278 #787F12
tetradic
#12787F #4F127F #7F1912 #417F12
square
#12787F #4F127F #7F1912 #417F12
split-complementary
#12787F #7F1241 #7F4F12
monochromatic
#04191B #0A4549 #12787F #1AABB5 #2BD5E1

Accessibility & contrast

On white

5.23
#12787F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#12787F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12787F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12787F#FFFFFF#000000##FFFFFF
##12787F1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E7280
Deuteranopia (green-blind)
#5F687F
Tritanopia (blue-blind)
#007D7A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #12787f;
/* rgb */ color: rgb(18, 120, 127);
/* oklch */ color: oklch(52.3% 0.085 202.3);
Tailwind
colors: {
  custom: {
    50: '#689fa4',
    500: '#12787f',
    950: '#000000',
  },
}
SCSS
$custom: #12787f;
$custom-light: #689fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#12787f",
  "rgb": {
    "r": 18,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 183.853,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52323,
    "c": 0.08501,
    "h": 202.3
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#12787F
secondary
#B54038
accent
#4236F2
background
#F6F9FA
surface
#ECF2F4
border
#C7CCCE
text
#070E0F
muted
#7A7E7F

Preview Lab

Preview with #12787F

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

Preview Lab → · Contrast checker → · Palette generator →

#12787F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva