#21781B#21781B

#21781B is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.151 H 142.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#21781B
RGBrgb(33, 120, 27)
HSLhsl(116, 63%, 29%)
HSVhsv(116, 78%, 47%)
CMYKcmyk(72.5%, 0%, 77.5%, 52.9%)
CIE-LABlab(43.99, -43.75, 41.02)
CIE-LCHlch(43.99, 59.97, 136.84°)
OKLaboklab(50.28% -0.1191 0.0925)
OKLCHoklch(50.28% 0.151 142.2)
XYZxyz(7.5411, 13.8346, 3.3096)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21781B #721B78
analogous
#50781B #21781B #1B7844
triadic
#21781B #1B2178 #781B21
tetradic
#21781B #1B5078 #721B78 #78441B
square
#21781B #1B5078 #721B78 #78441B
split-complementary
#21781B #441B78 #781B50
monochromatic
#071906 #134610 #21781B #2FAA26 #44D33B

Accessibility & contrast

On white

5.57
#21781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#21781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21781B
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21781B#FFFFFF#000000##FFFFFF
##21781B1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C08
Deuteranopia (green-blind)
#716525
Tritanopia (blue-blind)
#097466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21781b;
/* rgb */ color: rgb(33, 120, 27);
/* oklch */ color: oklch(50.3% 0.151 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ba05e',
    500: '#21781b',
    950: '#000000',
  },
}
SCSS
$custom: #21781b;
$custom-light: #6ba05e;
$custom-dark: #000000;
JSON
{
  "hex": "#21781b",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 116.129,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50282,
    "c": 0.15081,
    "h": 142.2
  },
  "luminance": 0.13835
}

Semantic roles & 50–950 ramp

primary
#21781B
secondary
#A543AC
accent
#41E6DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21781B

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

Preview Lab → · Contrast checker → · Palette generator →

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