#21793C#21793C

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

Color values

HEX#21793C
RGBrgb(33, 121, 60)
HSLhsl(138, 57%, 30%)
HSVhsv(138, 73%, 47%)
CMYKcmyk(72.7%, 0%, 50.4%, 52.5%)
CIE-LABlab(44.69, -39.96, 26.07)
CIE-LCHlch(44.69, 47.71, 146.88°)
OKLaboklab(50.97% -0.1076 0.0635)
OKLCHoklch(50.97% 0.125 149.5)
XYZxyz(8.2795, 14.3234, 6.6024)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21793C #79215E
analogous
#327921 #21793C #217968
triadic
#21793C #3C2179 #793C21
tetradic
#21793C #213279 #79215E #796821
square
#21793C #213279 #79215E #796821
split-complementary
#21793C #682179 #792132
monochromatic
#07190C #144924 #21793C #2EA954 #47CD70

Accessibility & contrast

On white

5.43
#21793C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21793C
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21793C#FFFFFF#000000##FFFFFF
##21793C1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E37
Deuteranopia (green-blind)
#6F6740
Tritanopia (blue-blind)
#00776B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #21793c;
/* rgb */ color: rgb(33, 121, 60);
/* oklch */ color: oklch(51.0% 0.125 149.5);
Tailwind
colors: {
  custom: {
    50: '#69a173',
    500: '#21793c',
    950: '#000000',
  },
}
SCSS
$custom: #21793c;
$custom-light: #69a173;
$custom-dark: #000000;
JSON
{
  "hex": "#21793c",
  "rgb": {
    "r": 33,
    "g": 121,
    "b": 60
  },
  "hsl": {
    "h": 138.409,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50974,
    "c": 0.12493,
    "h": 149.5
  },
  "luminance": 0.14324
}

Semantic roles & 50–950 ramp

primary
#21793C
secondary
#AC4A8E
accent
#47B1E0
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #21793C

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

Preview Lab → · Contrast checker → · Palette generator →

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