#21741B#21741B

#21741B is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.1% C 0.146 H 142.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#21741B
RGBrgb(33, 116, 27)
HSLhsl(116, 62%, 28%)
HSVhsv(116, 77%, 45%)
CMYKcmyk(71.6%, 0%, 76.7%, 54.5%)
CIE-LABlab(42.60, -42.31, 39.62)
CIE-LCHlch(42.60, 57.97, 136.88°)
OKLaboklab(49.13% -0.1152 0.0896)
OKLCHoklch(49.13% 0.146 142.1)
XYZxyz(7.0700, 12.8925, 3.1526)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21741B #6E1B74
analogous
#4D741B #21741B #1B7441
triadic
#21741B #1B2174 #741B21
tetradic
#21741B #1B4D74 #6E1B74 #74411B
square
#21741B #1B4D74 #6E1B74 #74411B
split-complementary
#21741B #411B74 #741B4D
monochromatic
#071906 #13420F #21741B #2FA627 #43D139

Accessibility & contrast

On white

5.87
#21741B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#21741B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21741B
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21741B#FFFFFF#000000##FFFFFF
##21741B1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690A
Deuteranopia (green-blind)
#6D6224
Tritanopia (blue-blind)
#0C7063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #21741b;
/* rgb */ color: rgb(33, 116, 27);
/* oklch */ color: oklch(49.1% 0.146 142.1);
Tailwind
colors: {
  custom: {
    50: '#6a9d5e',
    500: '#21741b',
    950: '#000000',
  },
}
SCSS
$custom: #21741b;
$custom-light: #6a9d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#21741b",
  "rgb": {
    "r": 33,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 115.955,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49126,
    "c": 0.14594,
    "h": 142.1
  },
  "luminance": 0.12893
}

Semantic roles & 50–950 ramp

primary
#21741B
secondary
#A242A9
accent
#42E5DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21741B

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

Preview Lab → · Contrast checker → · Palette generator →

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