#21812E#21812E

#21812E is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.0% C 0.148 H 145.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#21812E
RGBrgb(33, 129, 46)
HSLhsl(128, 59%, 32%)
HSVhsv(128, 74%, 51%)
CMYKcmyk(74.4%, 0%, 64.3%, 49.4%)
CIE-LABlab(47.26, -45.04, 36.31)
CIE-LCHlch(47.26, 57.85, 141.12°)
OKLaboklab(53.04% -0.1216 0.085)
OKLCHoklch(53.04% 0.148 145.1)
XYZxyz(8.9700, 16.2201, 5.2423)
Luminance0.1622 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21812E #812174
analogous
#448121 #21812E #21815E
triadic
#21812E #2E2181 #812E21
tetradic
#21812E #214481 #812174 #815E21
square
#21812E #214481 #812174 #815E21
split-complementary
#21812E #5E2181 #812144
monochromatic
#08200B #15501D #21812E #2DB23F #4BD15D

Accessibility & contrast

On white

4.95
#21812E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#21812E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21812E
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21812E#FFFFFF#000000##FFFFFF
##21812E1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837525
Deuteranopia (green-blind)
#786D35
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #21812e;
/* rgb */ color: rgb(33, 129, 46);
/* oklch */ color: oklch(53.0% 0.148 145.1);
Tailwind
colors: {
  custom: {
    50: '#6ca76a',
    500: '#21812e',
    950: '#000000',
  },
}
SCSS
$custom: #21812e;
$custom-light: #6ca76a;
$custom-dark: #000000;
JSON
{
  "hex": "#21812e",
  "rgb": {
    "r": 33,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 128.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53043,
    "c": 0.14837,
    "h": 145.1
  },
  "luminance": 0.16221
}

Semantic roles & 50–950 ramp

primary
#21812E
secondary
#B44AA5
accent
#45CDE2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #21812E

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

Preview Lab → · Contrast checker → · Palette generator →

#21812E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva