#21786C#21786C

#21786C is a mid, moderate teal. Relative luminance 0.148; OKLCH L 51.9% C 0.082 H 181.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#21786C
RGBrgb(33, 120, 108)
HSLhsl(172, 57%, 30%)
HSVhsv(172, 73%, 47%)
CMYKcmyk(72.5%, 0%, 10%, 52.9%)
CIE-LABlab(45.41, -28.28, -0.79)
CIE-LCHlch(45.41, 28.29, 181.59°)
OKLaboklab(51.91% -0.0824 -0.0026)
OKLCHoklch(51.91% 0.082 181.8)
XYZxyz(10.0491, 14.8378, 16.5188)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21786C #78212D
analogous
#217840 #21786C #215978
triadic
#21786C #6C2178 #786C21
tetradic
#21786C #402178 #78212D #597821
square
#21786C #402178 #78212D #597821
split-complementary
#21786C #782159 #784021
monochromatic
#071816 #144841 #21786C #2EA897 #47CCBA

Accessibility & contrast

On white

5.29
#21786C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#21786C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21786C
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21786C#FFFFFF#000000##FFFFFF
##21786C1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72716C
Deuteranopia (green-blind)
#66686D
Tritanopia (blue-blind)
#007A74
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #21786c;
/* rgb */ color: rgb(33, 120, 108);
/* oklch */ color: oklch(51.9% 0.082 181.8);
Tailwind
colors: {
  custom: {
    50: '#6a9f96',
    500: '#21786c',
    950: '#000000',
  },
}
SCSS
$custom: #21786c;
$custom-light: #6a9f96;
$custom-dark: #000000;
JSON
{
  "hex": "#21786c",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 108
  },
  "hsl": {
    "h": 171.724,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.51911,
    "c": 0.08244,
    "h": 181.8
  },
  "luminance": 0.14839
}

Semantic roles & 50–950 ramp

primary
#21786C
secondary
#AB4A57
accent
#485DE0
background
#F6F9F9
surface
#ECF2F1
border
#C7CCCB
text
#070E0D
muted
#7A7E7E

Preview Lab

Preview with #21786C

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

Preview Lab → · Contrast checker → · Palette generator →

#21786C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva