#18842A#18842A

#18842A is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.7% C 0.158 H 145.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#18842A
RGBrgb(24, 132, 42)
HSLhsl(130, 69%, 31%)
HSVhsv(130, 82%, 52%)
CMYKcmyk(81.8%, 0%, 68.2%, 48.2%)
CIE-LABlab(48.09, -47.96, 39.03)
CIE-LCHlch(48.09, 61.83, 140.86°)
OKLaboklab(53.67% -0.1293 0.0903)
OKLCHoklch(53.67% 0.158 145.1)
XYZxyz(9.0452, 16.8628, 4.9682)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18842A #841872
analogous
#3C8418 #18842A #188460
triadic
#18842A #2A1884 #842A18
tetradic
#18842A #183C84 #841872 #846018
square
#18842A #183C84 #841872 #846018
split-complementary
#18842A #601884 #84183C
monochromatic
#051C09 #0F501A #18842A #21B83A #3BDB56

Accessibility & contrast

On white

4.80
#18842A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#18842A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #18842A
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18842A#FFFFFF#000000##FFFFFF
##18842A1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771E
Deuteranopia (green-blind)
#7B6F32
Tritanopia (blue-blind)
#008071
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #18842a;
/* rgb */ color: rgb(24, 132, 42);
/* oklch */ color: oklch(53.7% 0.158 145.1);
Tailwind
colors: {
  custom: {
    50: '#6aa968',
    500: '#18842a',
    950: '#000000',
  },
}
SCSS
$custom: #18842a;
$custom-light: #6aa968;
$custom-dark: #000000;
JSON
{
  "hex": "#18842a",
  "rgb": {
    "r": 24,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 130,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53667,
    "c": 0.15776,
    "h": 145.1
  },
  "luminance": 0.16864
}

Semantic roles & 50–950 ramp

primary
#18842A
secondary
#B840A4
accent
#3CCFEC
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#081006
muted
#7A7F7A

Preview Lab

Preview with #18842A

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

Preview Lab → · Contrast checker → · Palette generator →

#18842A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva