#21721B#21721B

#21721B is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.143 H 142.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#21721B
RGBrgb(33, 114, 27)
HSLhsl(116, 62%, 28%)
HSVhsv(116, 76%, 45%)
CMYKcmyk(71.1%, 0%, 76.3%, 55.3%)
CIE-LABlab(41.90, -41.58, 38.91)
CIE-LCHlch(41.90, 56.95, 136.90°)
OKLaboklab(48.55% -0.1132 0.0881)
OKLCHoklch(48.55% 0.143 142.1)
XYZxyz(6.8420, 12.4364, 3.0766)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21721B #6C1B72
analogous
#4C721B #21721B #1B7240
triadic
#21721B #1B2172 #721B21
tetradic
#21721B #1B4C72 #6C1B72 #72401B
square
#21721B #1B4C72 #6C1B72 #72401B
split-complementary
#21721B #401B72 #721B4C
monochromatic
#071906 #13410F #21721B #2FA327 #42D038

Accessibility & contrast

On white

6.02
#21721B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#21721B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21721B
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21721B#FFFFFF#000000##FFFFFF
##21721B1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670B
Deuteranopia (green-blind)
#6B6024
Tritanopia (blue-blind)
#0E6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #21721b;
/* rgb */ color: rgb(33, 114, 27);
/* oklch */ color: oklch(48.5% 0.143 142.1);
Tailwind
colors: {
  custom: {
    50: '#699b5d',
    500: '#21721b',
    950: '#000000',
  },
}
SCSS
$custom: #21721b;
$custom-light: #699b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#21721b",
  "rgb": {
    "r": 33,
    "g": 114,
    "b": 27
  },
  "hsl": {
    "h": 115.862,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.14348,
    "h": 142.1
  },
  "luminance": 0.12437
}

Semantic roles & 50–950 ramp

primary
#21721B
secondary
#A042A7
accent
#43E5DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #21721B

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

Preview Lab → · Contrast checker → · Palette generator →

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