#21793B#21793B

#21793B is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.126 H 149.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#21793B
RGBrgb(33, 121, 59)
HSLhsl(138, 57%, 30%)
HSVhsv(138, 73%, 47%)
CMYKcmyk(72.7%, 0%, 51.2%, 52.5%)
CIE-LABlab(44.68, -40.13, 26.60)
CIE-LCHlch(44.68, 48.15, 146.47°)
OKLaboklab(50.96% -0.1081 0.0646)
OKLCHoklch(50.96% 0.126 149.1)
XYZxyz(8.2533, 14.3129, 6.4645)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21793B #79215F
analogous
#337921 #21793B #217967
triadic
#21793B #3B2179 #793B21
tetradic
#21793B #213379 #79215F #796721
square
#21793B #213379 #79215F #796721
split-complementary
#21793B #672179 #792133
monochromatic
#07190C #144924 #21793B #2EA952 #47CD6F

Accessibility & contrast

On white

5.44
#21793B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#21793B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21793B
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21793B#FFFFFF#000000##FFFFFF
##21793B1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E36
Deuteranopia (green-blind)
#6F673F
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #21793b;
/* rgb */ color: rgb(33, 121, 59);
/* oklch */ color: oklch(51.0% 0.126 149.1);
Tailwind
colors: {
  custom: {
    50: '#69a172',
    500: '#21793b',
    950: '#000000',
  },
}
SCSS
$custom: #21793b;
$custom-light: #69a172;
$custom-dark: #000000;
JSON
{
  "hex": "#21793b",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 59
  },
  "hsl": {
    "h": 137.727,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50957,
    "c": 0.12592,
    "h": 149.1
  },
  "luminance": 0.14314
}

Semantic roles & 50–950 ramp

primary
#21793B
secondary
#AC4A8F
accent
#47B3E0
background
#F6FAF6
surface
#ECF3EC
border
#C7CDC7
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #21793B

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

Preview Lab → · Contrast checker → · Palette generator →

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