#21795B#21795B

#21795B is a mid, moderate teal. Relative luminance 0.148; OKLCH L 51.7% C 0.095 H 165.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#21795B
RGBrgb(33, 121, 91)
HSLhsl(160, 57%, 30%)
HSVhsv(160, 73%, 47%)
CMYKcmyk(72.7%, 0%, 24.8%, 52.5%)
CIE-LABlab(45.29, -33.37, 9.13)
CIE-LCHlch(45.29, 34.59, 164.70°)
OKLaboklab(51.67% -0.0921 0.0233)
OKLCHoklch(51.67% 0.095 165.8)
XYZxyz(9.3519, 14.7523, 12.2501)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21795B #79213F
analogous
#21792F #21795B #216B79
triadic
#21795B #5B2179 #795B21
tetradic
#21795B #2F2179 #79213F #6B7921
square
#21795B #2F2179 #79213F #6B7921
split-complementary
#21795B #79216B #792F21
monochromatic
#071913 #144937 #21795B #2EA97F #47CD9F

Accessibility & contrast

On white

5.32
#21795B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#21795B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21795B
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21795B#FFFFFF#000000##FFFFFF
##21795B1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#767059
Deuteranopia (green-blind)
#6B685D
Tritanopia (blue-blind)
#007971
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #21795b;
/* rgb */ color: rgb(33, 121, 91);
/* oklch */ color: oklch(51.7% 0.095 165.8);
Tailwind
colors: {
  custom: {
    50: '#69a089',
    500: '#21795b',
    950: '#000000',
  },
}
SCSS
$custom: #21795b;
$custom-light: #69a089;
$custom-dark: #000000;
JSON
{
  "hex": "#21795b",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 91
  },
  "hsl": {
    "h": 159.545,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51665,
    "c": 0.09506,
    "h": 165.8
  },
  "luminance": 0.14753
}

Semantic roles & 50–950 ramp

primary
#21795B
secondary
#AC4A6B
accent
#477CE0
background
#F6F9F8
surface
#ECF2F0
border
#C7CCCB
text
#070F0B
muted
#7A7E7C

Preview Lab

Preview with #21795B

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

Preview Lab → · Contrast checker → · Palette generator →

#21795B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva