#21794C#21794C

#21794C is a mid, moderate green. Relative luminance 0.145; OKLCH L 51.3% C 0.109 H 156.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#21794C
RGBrgb(33, 121, 76)
HSLhsl(149, 57%, 30%)
HSVhsv(149, 73%, 47%)
CMYKcmyk(72.7%, 0%, 37.2%, 52.5%)
CIE-LABlab(44.97, -36.87, 17.43)
CIE-LCHlch(44.97, 40.78, 154.70°)
OKLaboklab(51.29% -0.0998 0.0438)
OKLCHoklch(51.29% 0.109 156.3)
XYZxyz(8.7683, 14.5189, 9.1764)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21794C #79214E
analogous
#227921 #21794C #217978
triadic
#21794C #4C2179 #794C21
tetradic
#21794C #212279 #79214E #797821
square
#21794C #212279 #79214E #797821
split-complementary
#21794C #782179 #792122
monochromatic
#071910 #14492E #21794C #2EA96A #47CD89

Accessibility & contrast

On white

5.38
#21794C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#21794C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21794C
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21794C#FFFFFF#000000##FFFFFF
##21794C1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786F49
Deuteranopia (green-blind)
#6D674F
Tritanopia (blue-blind)
#00786D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #21794c;
/* rgb */ color: rgb(33, 121, 76);
/* oklch */ color: oklch(51.3% 0.109 156.3);
Tailwind
colors: {
  custom: {
    50: '#69a07e',
    500: '#21794c',
    950: '#000000',
  },
}
SCSS
$custom: #21794c;
$custom-light: #69a07e;
$custom-dark: #000000;
JSON
{
  "hex": "#21794c",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 76
  },
  "hsl": {
    "h": 149.318,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51291,
    "c": 0.109,
    "h": 156.3
  },
  "luminance": 0.1452
}

Semantic roles & 50–950 ramp

primary
#21794C
secondary
#AC4A7C
accent
#4796E0
background
#F6F9F7
surface
#ECF2EE
border
#C7CCC9
text
#070F0A
muted
#7A7E7C

Preview Lab

Preview with #21794C

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

Preview Lab → · Contrast checker → · Palette generator →

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