#21701B#21701B

#21701B is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.0% C 0.141 H 142.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#21701B
RGBrgb(33, 112, 27)
HSLhsl(116, 61%, 27%)
HSVhsv(116, 76%, 44%)
CMYKcmyk(70.5%, 0%, 75.9%, 56.1%)
CIE-LABlab(41.20, -40.85, 38.20)
CIE-LCHlch(41.20, 55.93, 136.92°)
OKLaboklab(47.97% -0.1112 0.0866)
OKLCHoklch(47.97% 0.141 142.1)
XYZxyz(6.6188, 11.9901, 3.0022)
Luminance0.1199 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21701B #6A1B70
analogous
#4B701B #21701B #1B7040
triadic
#21701B #1B2170 #701B21
tetradic
#21701B #1B4B70 #6A1B70 #70401B
square
#21701B #1B4B70 #6A1B70 #70401B
split-complementary
#21701B #401B70 #701B4B
monochromatic
#071906 #123F0F #21701B #30A127 #41CF37

Accessibility & contrast

On white

6.18
#21701B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#21701B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21701B
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21701B#FFFFFF#000000##FFFFFF
##21701B1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73650C
Deuteranopia (green-blind)
#695F24
Tritanopia (blue-blind)
#0F6C5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #21701b;
/* rgb */ color: rgb(33, 112, 27);
/* oklch */ color: oklch(48.0% 0.141 142.1);
Tailwind
colors: {
  custom: {
    50: '#699a5d',
    500: '#21701b',
    950: '#000000',
  },
}
SCSS
$custom: #21701b;
$custom-light: #699a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#21701b",
  "rgb": {
    "r": 33,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 115.765,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.47965,
    "c": 0.14099,
    "h": 142.1
  },
  "luminance": 0.11991
}

Semantic roles & 50–950 ramp

primary
#21701B
secondary
#9E42A5
accent
#44E4D9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #21701B

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

Preview Lab → · Contrast checker → · Palette generator →

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