#21782B#21782B

#21782B is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.139 H 144.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#21782B
RGBrgb(33, 120, 43)
HSLhsl(127, 57%, 30%)
HSVhsv(127, 73%, 47%)
CMYKcmyk(72.5%, 0%, 64.2%, 52.9%)
CIE-LABlab(44.13, -42.10, 34.20)
CIE-LCHlch(44.13, 54.24, 140.91°)
OKLaboklab(50.44% -0.1138 0.0801)
OKLCHoklch(50.44% 0.139 144.9)
XYZxyz(7.7792, 13.9298, 4.5638)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21782B #78216E
analogous
#427821 #21782B #217857
triadic
#21782B #2B2178 #782B21
tetradic
#21782B #214278 #78216E #785721
square
#21782B #214278 #78216E #785721
split-complementary
#21782B #572178 #782142
monochromatic
#071809 #14481A #21782B #2EA83C #47CC56

Accessibility & contrast

On white

5.55
#21782B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#21782B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21782B
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21782B#FFFFFF#000000##FFFFFF
##21782B1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D22
Deuteranopia (green-blind)
#706631
Tritanopia (blue-blind)
#017568
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21782b;
/* rgb */ color: rgb(33, 120, 43);
/* oklch */ color: oklch(50.4% 0.139 144.9);
Tailwind
colors: {
  custom: {
    50: '#6aa067',
    500: '#21782b',
    950: '#000000',
  },
}
SCSS
$custom: #21782b;
$custom-light: #6aa067;
$custom-dark: #000000;
JSON
{
  "hex": "#21782b",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 43
  },
  "hsl": {
    "h": 126.897,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.5044,
    "c": 0.1392,
    "h": 144.9
  },
  "luminance": 0.13931
}

Semantic roles & 50–950 ramp

primary
#21782B
secondary
#AB4AA0
accent
#48CFE0
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #21782B

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

Preview Lab → · Contrast checker → · Palette generator →

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