#21702A#21702A

#21702A is a mid, vivid green. Relative luminance 0.121; OKLCH L 48.1% C 0.129 H 145.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#21702A
RGBrgb(33, 112, 42)
HSLhsl(127, 54%, 28%)
HSVhsv(127, 71%, 44%)
CMYKcmyk(70.5%, 0%, 62.5%, 56.1%)
CIE-LABlab(41.34, -39.19, 31.50)
CIE-LCHlch(41.34, 50.28, 141.21°)
OKLaboklab(48.13% -0.106 0.0742)
OKLCHoklch(48.13% 0.129 145)
XYZxyz(6.8388, 12.0781, 4.1609)
Luminance0.1208 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21702A #702167
analogous
#3F7021 #21702A #217051
triadic
#21702A #2A2170 #702A21
tetradic
#21702A #213F70 #702167 #705121
square
#21702A #213F70 #702167 #705121
split-complementary
#21702A #512170 #70213F
monochromatic
#071809 #134118 #21702A #2F9F3C #44C853

Accessibility & contrast

On white

6.15
#21702A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#21702A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21702A
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21702A#FFFFFF#000000##FFFFFF
##21702A1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726523
Deuteranopia (green-blind)
#685F30
Tritanopia (blue-blind)
#086D61
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #21702a;
/* rgb */ color: rgb(33, 112, 42);
/* oklch */ color: oklch(48.1% 0.129 145.0);
Tailwind
colors: {
  custom: {
    50: '#689a66',
    500: '#21702a',
    950: '#000000',
  },
}
SCSS
$custom: #21702a;
$custom-light: #689a66;
$custom-dark: #000000;
JSON
{
  "hex": "#21702a",
  "rgb": {
    "r": 33,
    "g": 112,
    "b": 42
  },
  "hsl": {
    "h": 126.835,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.48126,
    "c": 0.12938,
    "h": 145
  },
  "luminance": 0.12079
}

Semantic roles & 50–950 ramp

primary
#21702A
secondary
#A44999
accent
#4ACDDE
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #21702A

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

Preview Lab → · Contrast checker → · Palette generator →

#21702A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva