#21741C#21741C

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

Color values

HEX#21741C
RGBrgb(33, 116, 28)
HSLhsl(117, 61%, 28%)
HSVhsv(117, 76%, 45%)
CMYKcmyk(71.6%, 0%, 75.9%, 54.5%)
CIE-LABlab(42.61, -42.22, 39.23)
CIE-LCHlch(42.61, 57.64, 137.10°)
OKLaboklab(49.13% -0.1149 0.0889)
OKLCHoklch(49.13% 0.145 142.3)
XYZxyz(7.0818, 12.8972, 3.2146)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21741C #6F1C74
analogous
#4D741C #21741C #1C7443
triadic
#21741C #1C2174 #741C21
tetradic
#21741C #1C4D74 #6F1C74 #74431C
square
#21741C #1C4D74 #6F1C74 #74431C
split-complementary
#21741C #431C74 #741C4D
monochromatic
#071906 #134310 #21741C #2FA528 #43D03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21741C#FFFFFF#000000##FFFFFF
##21741C1.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)
#77690C
Deuteranopia (green-blind)
#6D6225
Tritanopia (blue-blind)
#0C7063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #21741c;
/* rgb */ color: rgb(33, 116, 28);
/* oklch */ color: oklch(49.1% 0.145 142.3);
Tailwind
colors: {
  custom: {
    50: '#6a9d5e',
    500: '#21741c',
    950: '#000000',
  },
}
SCSS
$custom: #21741c;
$custom-light: #6a9d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#21741c",
  "rgb": {
    "r": 33,
    "g": 116,
    "b": 28
  },
  "hsl": {
    "h": 116.591,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49134,
    "c": 0.14531,
    "h": 142.3
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#21741C
secondary
#A343A8
accent
#44E4DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21741C

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

Preview Lab → · Contrast checker → · Palette generator →

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