#21862F#21862F

#21862F is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.5% C 0.154 H 145.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#21862F
RGBrgb(33, 134, 47)
HSLhsl(128, 60%, 33%)
HSVhsv(128, 75%, 53%)
CMYKcmyk(75.4%, 0%, 64.9%, 47.5%)
CIE-LABlab(48.98, -46.71, 37.78)
CIE-LCHlch(48.98, 60.08, 141.03°)
OKLaboklab(54.47% -0.1261 0.0882)
OKLCHoklch(54.47% 0.154 145)
XYZxyz(9.6647, 17.5777, 5.5723)
Luminance0.1758 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21862F #862178
analogous
#458621 #21862F #218661
triadic
#21862F #2F2186 #862F21
tetradic
#21862F #214586 #862178 #866121
square
#21862F #214586 #862178 #866121
split-complementary
#21862F #612186 #862145
monochromatic
#09240D #15551E #21862F #2DB740 #4ED360

Accessibility & contrast

On white

4.65
#21862F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#21862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #21862F
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21862F#FFFFFF#000000##FFFFFF
##21862F1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887925
Deuteranopia (green-blind)
#7D7137
Tritanopia (blue-blind)
#008274
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #21862f;
/* rgb */ color: rgb(33, 134, 47);
/* oklch */ color: oklch(54.5% 0.154 145.0);
Tailwind
colors: {
  custom: {
    50: '#6daa6b',
    500: '#21862f',
    950: '#000000',
  },
}
SCSS
$custom: #21862f;
$custom-light: #6daa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#21862f",
  "rgb": {
    "r": 33,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 128.317,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5447,
    "c": 0.15391,
    "h": 145
  },
  "luminance": 0.17579
}

Semantic roles & 50–950 ramp

primary
#21862F
secondary
#B74CA8
accent
#44CEE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21862F

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

Preview Lab → · Contrast checker → · Palette generator →

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