#21796C#21796C

#21796C is a mid, moderate teal. Relative luminance 0.151; OKLCH L 52.2% C 0.084 H 180.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#21796C
RGBrgb(33, 121, 108)
HSLhsl(171, 57%, 30%)
HSVhsv(171, 73%, 47%)
CMYKcmyk(72.7%, 0%, 10.7%, 52.5%)
CIE-LABlab(45.74, -28.76, -0.30)
CIE-LCHlch(45.74, 28.76, 180.60°)
OKLaboklab(52.18% -0.0835 -0.0013)
OKLCHoklch(52.18% 0.084 180.9)
XYZxyz(10.1700, 15.0796, 16.5591)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21796C #79212E
analogous
#217940 #21796C #215A79
triadic
#21796C #6C2179 #796C21
tetradic
#21796C #402179 #79212E #5A7921
square
#21796C #402179 #79212E #5A7921
split-complementary
#21796C #79215A #794021
monochromatic
#071916 #144941 #21796C #2EA997 #47CDB9

Accessibility & contrast

On white

5.23
#21796C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#21796C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21796C
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21796C#FFFFFF#000000##FFFFFF
##21796C1.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)
#73726C
Deuteranopia (green-blind)
#67696D
Tritanopia (blue-blind)
#007B75
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #21796c;
/* rgb */ color: rgb(33, 121, 108);
/* oklch */ color: oklch(52.2% 0.084 180.9);
Tailwind
colors: {
  custom: {
    50: '#6aa096',
    500: '#21796c',
    950: '#000000',
  },
}
SCSS
$custom: #21796c;
$custom-light: #6aa096;
$custom-dark: #000000;
JSON
{
  "hex": "#21796c",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 108
  },
  "hsl": {
    "h": 171.136,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52182,
    "c": 0.08351,
    "h": 180.9
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#21796C
secondary
#AC4A58
accent
#475EE0
background
#F6F9F9
surface
#ECF2F1
border
#C7CCCB
text
#070F0D
muted
#7A7E7E

Preview Lab

Preview with #21796C

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

Preview Lab → · Contrast checker → · Palette generator →

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