#18731F#18731F

#18731F is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.6% C 0.145 H 143.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#18731F
RGBrgb(24, 115, 31)
HSLhsl(125, 65%, 27%)
HSVhsv(125, 79%, 45%)
CMYKcmyk(79.1%, 0%, 73%, 54.9%)
CIE-LABlab(42.08, -43.26, 37.39)
CIE-LCHlch(42.08, 57.18, 139.16°)
OKLaboklab(48.65% -0.1171 0.0855)
OKLCHoklch(48.65% 0.145 143.8)
XYZxyz(6.7543, 12.5538, 3.3632)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18731F #73186C
analogous
#3F7318 #18731F #18734C
triadic
#18731F #1F1873 #731F18
tetradic
#18731F #183F73 #73186C #734C18
square
#18731F #183F73 #73186C #734C18
split-complementary
#18731F #4C1873 #73183F
monochromatic
#051907 #0D4011 #18731F #23A62D #31D43E

Accessibility & contrast

On white

5.98
#18731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#18731F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #18731F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18731F#FFFFFF#000000##FFFFFF
##18731F1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756812
Deuteranopia (green-blind)
#6B6127
Tritanopia (blue-blind)
#007062
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #18731f;
/* rgb */ color: rgb(24, 115, 31);
/* oklch */ color: oklch(48.6% 0.145 143.8);
Tailwind
colors: {
  custom: {
    50: '#669c60',
    500: '#18731f',
    950: '#000000',
  },
}
SCSS
$custom: #18731f;
$custom-light: #669c60;
$custom-dark: #000000;
JSON
{
  "hex": "#18731f",
  "rgb": {
    "r": 24,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 124.615,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.48649,
    "c": 0.14499,
    "h": 143.8
  },
  "luminance": 0.12555
}

Semantic roles & 50–950 ramp

primary
#18731F
secondary
#A83FA0
accent
#3FDBE8
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #18731F

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

Preview Lab → · Contrast checker → · Palette generator →

#18731F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva