#21795C#21795C

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

Color values

HEX#21795C
RGBrgb(33, 121, 92)
HSLhsl(160, 57%, 30%)
HSVhsv(160, 73%, 47%)
CMYKcmyk(72.7%, 0%, 24%, 52.5%)
CIE-LABlab(45.32, -33.11, 8.57)
CIE-LCHlch(45.32, 34.20, 165.49°)
OKLaboklab(51.69% -0.0916 0.0219)
OKLCHoklch(51.69% 0.094 166.5)
XYZxyz(9.3953, 14.7697, 12.4788)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21795C #79213E
analogous
#217930 #21795C #216A79
triadic
#21795C #5C2179 #795C21
tetradic
#21795C #302179 #79213E #6A7921
square
#21795C #302179 #79213E #6A7921
split-complementary
#21795C #79216A #793021
monochromatic
#071913 #144937 #21795C #2EA981 #47CDA1

Accessibility & contrast

On white

5.31
#21795C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21795C
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21795C#FFFFFF#000000##FFFFFF
##21795C1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76705A
Deuteranopia (green-blind)
#6B685E
Tritanopia (blue-blind)
#007971
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #21795c;
/* rgb */ color: rgb(33, 121, 92);
/* oklch */ color: oklch(51.7% 0.094 166.5);
Tailwind
colors: {
  custom: {
    50: '#69a08a',
    500: '#21795c',
    950: '#000000',
  },
}
SCSS
$custom: #21795c;
$custom-light: #69a08a;
$custom-dark: #000000;
JSON
{
  "hex": "#21795c",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 92
  },
  "hsl": {
    "h": 160.227,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51693,
    "c": 0.09422,
    "h": 166.5
  },
  "luminance": 0.14771
}

Semantic roles & 50–950 ramp

primary
#21795C
secondary
#AC4A6A
accent
#477AE0
background
#F6F9F8
surface
#ECF2F0
border
#C7CCCB
text
#070F0B
muted
#7A7E7C

Preview Lab

Preview with #21795C

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

Preview Lab → · Contrast checker → · Palette generator →

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