#188B1F#188B1F

#188B1F is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.6% C 0.173 H 143.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#188B1F
RGBrgb(24, 139, 31)
HSLhsl(124, 71%, 32%)
HSVhsv(124, 83%, 55%)
CMYKcmyk(82.7%, 0%, 77.7%, 45.5%)
CIE-LABlab(50.40, -51.31, 45.87)
CIE-LCHlch(50.40, 68.82, 138.21°)
OKLaboklab(55.57% -0.139 0.1032)
OKLCHoklch(55.57% 0.173 143.4)
XYZxyz(9.8560, 18.7572, 4.3971)
Luminance0.1876 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#188B1F #8B1884
analogous
#4B8B18 #188B1F #188B59
triadic
#188B1F #1F188B #8B1F18
tetradic
#188B1F #184B8B #8B1884 #8B5918
square
#188B1F #184B8B #8B1884 #8B5918
split-complementary
#188B1F #59188B #8B184B
monochromatic
#062308 #0F5713 #188B1F #21BF2B #3FDE49

Accessibility & contrast

On white

4.42
#188B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#188B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #188B1F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##188B1F#FFFFFF#000000##000000
##188B1F1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D06
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #188b1f;
/* rgb */ color: rgb(24, 139, 31);
/* oklch */ color: oklch(55.6% 0.173 143.4);
Tailwind
colors: {
  custom: {
    50: '#6dae63',
    500: '#188b1f',
    950: '#000000',
  },
}
SCSS
$custom: #188b1f;
$custom-light: #6dae63;
$custom-dark: #000000;
JSON
{
  "hex": "#188b1f",
  "rgb": {
    "r": 24,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 123.652,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55566,
    "c": 0.17311,
    "h": 143.4
  },
  "luminance": 0.18758
}

Semantic roles & 50–950 ramp

primary
#188B1F
secondary
#BE40B7
accent
#3AE2ED
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #188B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#188B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva