#21781F#21781F

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

Color values

HEX#21781F
RGBrgb(33, 120, 31)
HSLhsl(119, 59%, 30%)
HSVhsv(119, 74%, 47%)
CMYKcmyk(72.5%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.02, -43.40, 39.47)
CIE-LCHlch(44.02, 58.67, 137.71°)
OKLaboklab(50.32% -0.1179 0.0899)
OKLCHoklch(50.32% 0.148 142.7)
XYZxyz(7.5905, 13.8544, 3.5702)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21781F #761F78
analogous
#4D781F #21781F #1F784A
triadic
#21781F #1F2178 #781F21
tetradic
#21781F #1F4D78 #761F78 #784A1F
square
#21781F #1F4D78 #761F78 #784A1F
split-complementary
#21781F #4A1F78 #781F4D
monochromatic
#071806 #144712 #21781F #2EA92C #46CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21781F#FFFFFF#000000##FFFFFF
##21781F1.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)
#7B6C10
Deuteranopia (green-blind)
#716528
Tritanopia (blue-blind)
#077466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21781f;
/* rgb */ color: rgb(33, 120, 31);
/* oklch */ color: oklch(50.3% 0.148 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ba060',
    500: '#21781f',
    950: '#000000',
  },
}
SCSS
$custom: #21781f;
$custom-light: #6ba060;
$custom-dark: #000000;
JSON
{
  "hex": "#21781f",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 118.652,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50315,
    "c": 0.14827,
    "h": 142.7
  },
  "luminance": 0.13855
}

Semantic roles & 50–950 ramp

primary
#21781F
secondary
#A947AB
accent
#46E2DF
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21781F

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

Preview Lab → · Contrast checker → · Palette generator →

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