#21795F#21795F

#21795F is a mid, moderate teal. Relative luminance 0.148; OKLCH L 51.8% C 0.092 H 168.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#21795F
RGBrgb(33, 121, 95)
HSLhsl(162, 57%, 30%)
HSVhsv(162, 73%, 47%)
CMYKcmyk(72.7%, 0%, 21.5%, 52.5%)
CIE-LABlab(45.39, -32.34, 6.90)
CIE-LCHlch(45.39, 33.07, 167.95°)
OKLaboklab(51.78% -0.0901 0.0177)
OKLCHoklch(51.78% 0.092 168.9)
XYZxyz(9.5290, 14.8232, 13.1832)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21795F #79213B
analogous
#217933 #21795F #216779
triadic
#21795F #5F2179 #795F21
tetradic
#21795F #332179 #79213B #677921
square
#21795F #332179 #79213B #677921
split-complementary
#21795F #792167 #793321
monochromatic
#071913 #144939 #21795F #2EA985 #47CDA6

Accessibility & contrast

On white

5.30
#21795F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#21795F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21795F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21795F#FFFFFF#000000##FFFFFF
##21795F1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76705E
Deuteranopia (green-blind)
#6A6861
Tritanopia (blue-blind)
#007A72
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #21795f;
/* rgb */ color: rgb(33, 121, 95);
/* oklch */ color: oklch(51.8% 0.092 168.9);
Tailwind
colors: {
  custom: {
    50: '#6aa08c',
    500: '#21795f',
    950: '#000000',
  },
}
SCSS
$custom: #21795f;
$custom-light: #6aa08c;
$custom-dark: #000000;
JSON
{
  "hex": "#21795f",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 95
  },
  "hsl": {
    "h": 162.273,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51778,
    "c": 0.0918,
    "h": 168.9
  },
  "luminance": 0.14824
}

Semantic roles & 50–950 ramp

primary
#21795F
secondary
#AC4A67
accent
#4775E0
background
#F6F9F8
surface
#ECF2F0
border
#C7CCCB
text
#070F0C
muted
#7A7E7D

Preview Lab

Preview with #21795F

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

Preview Lab → · Contrast checker → · Palette generator →

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