#118C21#118C21

#118C21 is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.8% C 0.174 H 144.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#118C21
RGBrgb(17, 140, 33)
HSLhsl(128, 78%, 31%)
HSVhsv(128, 88%, 55%)
CMYKcmyk(87.9%, 0%, 76.4%, 45.1%)
CIE-LABlab(50.67, -52.24, 45.38)
CIE-LCHlch(50.67, 69.20, 139.02°)
OKLaboklab(55.77% -0.1412 0.1025)
OKLCHoklch(55.77% 0.174 144)
XYZxyz(9.8831, 18.9839, 4.5819)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#118C21 #8C117C
analogous
#3E8C11 #118C21 #118C5E
triadic
#118C21 #21118C #8C2111
tetradic
#118C21 #113E8C #8C117C #8C5E11
square
#118C21 #113E8C #8C117C #8C5E11
split-complementary
#118C21 #5E118C #8C113E
monochromatic
#041F07 #0A5514 #118C21 #18C32E #31E649

Accessibility & contrast

On white

4.38
#118C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#118C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #118C21
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##118C21#FFFFFF#000000##000000
##118C211.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#82752D
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #118c21;
/* rgb */ color: rgb(17, 140, 33);
/* oklch */ color: oklch(55.8% 0.174 144.0);
Tailwind
colors: {
  custom: {
    50: '#6baf64',
    500: '#118c21',
    950: '#000000',
  },
}
SCSS
$custom: #118c21;
$custom-light: #6baf64;
$custom-dark: #000000;
JSON
{
  "hex": "#118c21",
  "rgb": {
    "r": 17,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 127.805,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55766,
    "c": 0.17447,
    "h": 144
  },
  "luminance": 0.18985
}

Semantic roles & 50–950 ramp

primary
#118C21
secondary
#C138AF
accent
#33DCF5
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #118C21

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

Preview Lab → · Contrast checker → · Palette generator →

#118C21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva