#21701F#21701F

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

Color values

HEX#21701F
RGBrgb(33, 112, 31)
HSLhsl(119, 57%, 28%)
HSVhsv(119, 72%, 44%)
CMYKcmyk(70.5%, 0%, 72.3%, 56.1%)
CIE-LABlab(41.23, -40.47, 36.55)
CIE-LCHlch(41.23, 54.53, 137.91°)
OKLaboklab(48% -0.11 0.0837)
OKLCHoklch(48% 0.138 142.7)
XYZxyz(6.6683, 12.0099, 3.2628)
Luminance0.1201 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21701F #6E1F70
analogous
#49701F #21701F #1F7046
triadic
#21701F #1F2170 #701F21
tetradic
#21701F #1F4970 #6E1F70 #70461F
square
#21701F #1F4970 #6E1F70 #70461F
split-complementary
#21701F #461F70 #701F49
monochromatic
#071807 #134012 #21701F #2FA02C #43CA3F

Accessibility & contrast

On white

6.17
#21701F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21701F
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21701F#FFFFFF#000000##FFFFFF
##21701F1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736513
Deuteranopia (green-blind)
#695F27
Tritanopia (blue-blind)
#0E6D60
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #21701f;
/* rgb */ color: rgb(33, 112, 31);
/* oklch */ color: oklch(48.0% 0.138 142.7);
Tailwind
colors: {
  custom: {
    50: '#699a5f',
    500: '#21701f',
    950: '#000000',
  },
}
SCSS
$custom: #21701f;
$custom-light: #699a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#21701f",
  "rgb": {
    "r": 33,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 118.519,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.48001,
    "c": 0.13824,
    "h": 142.7
  },
  "luminance": 0.12011
}

Semantic roles & 50–950 ramp

primary
#21701F
secondary
#A247A4
accent
#48E0DC
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #21701F

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

Preview Lab → · Contrast checker → · Palette generator →

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