#21741F#21741F

#21741F is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.2% C 0.143 H 142.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#21741F
RGBrgb(33, 116, 31)
HSLhsl(119, 58%, 29%)
HSVhsv(119, 73%, 45%)
CMYKcmyk(71.6%, 0%, 73.3%, 54.5%)
CIE-LABlab(42.63, -41.95, 38.03)
CIE-LCHlch(42.63, 56.62, 137.81°)
OKLaboklab(49.16% -0.114 0.0868)
OKLCHoklch(49.16% 0.143 142.7)
XYZxyz(7.1195, 12.9123, 3.4132)
Luminance0.1291 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21741F #721F74
analogous
#4C741F #21741F #1F7448
triadic
#21741F #1F2174 #741F21
tetradic
#21741F #1F4C74 #721F74 #74481F
square
#21741F #1F4C74 #721F74 #74481F
split-complementary
#21741F #481F74 #741F4C
monochromatic
#071806 #134412 #21741F #2FA42C #44CC41

Accessibility & contrast

On white

5.86
#21741F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21741F
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21741F#FFFFFF#000000##FFFFFF
##21741F1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776912
Deuteranopia (green-blind)
#6D6227
Tritanopia (blue-blind)
#0B7063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #21741f;
/* rgb */ color: rgb(33, 116, 31);
/* oklch */ color: oklch(49.2% 0.143 142.7);
Tailwind
colors: {
  custom: {
    50: '#6a9d60',
    500: '#21741f',
    950: '#000000',
  },
}
SCSS
$custom: #21741f;
$custom-light: #6a9d60;
$custom-dark: #000000;
JSON
{
  "hex": "#21741f",
  "rgb": {
    "r": 33,
    "g": 116,
    "b": 31
  },
  "hsl": {
    "h": 118.588,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4916,
    "c": 0.1433,
    "h": 142.7
  },
  "luminance": 0.12913
}

Semantic roles & 50–950 ramp

primary
#21741F
secondary
#A547A8
accent
#47E1DD
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21741F

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

Preview Lab → · Contrast checker → · Palette generator →

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