#18512C#18512C

#18512C is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.086 H 151.6°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#18512C
RGBrgb(24, 81, 44)
HSLhsl(141, 54%, 21%)
HSVhsv(141, 70%, 32%)
CMYKcmyk(70.4%, 0%, 45.7%, 68.2%)
CIE-LABlab(30.06, -27.97, 16.48)
CIE-LCHlch(30.06, 32.46, 149.48°)
OKLaboklab(38.75% -0.0755 0.0408)
OKLCHoklch(38.75% 0.086 151.6)
XYZxyz(3.7734, 6.2605, 3.3919)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18512C #51183D
analogous
#205118 #18512C #185148
triadic
#18512C #2C1851 #512C18
tetradic
#18512C #182051 #51183D #514818
square
#18512C #182051 #51183D #514818
split-complementary
#18512C #481851 #511820
monochromatic
#07180D #0A2212 #18512C #268046 #34AF5F

Accessibility & contrast

On white

9.32
#18512C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#18512C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18512C
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18512C#FFFFFF#000000##FFFFFF
##18512C1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A29
Deuteranopia (green-blind)
#4A452E
Tritanopia (blue-blind)
#025048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #18512c;
/* rgb */ color: rgb(24, 81, 44);
/* oklch */ color: oklch(38.8% 0.086 151.6);
Tailwind
colors: {
  custom: {
    50: '#5d8265',
    500: '#18512c',
    950: '#000000',
  },
}
SCSS
$custom: #18512c;
$custom-light: #5d8265;
$custom-dark: #000000;
JSON
{
  "hex": "#18512c",
  "rgb": {
    "r": 24,
    "g": 81,
    "b": 44
  },
  "hsl": {
    "h": 141.053,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.38753,
    "c": 0.08584,
    "h": 151.6
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#18512C
secondary
#883D6E
accent
#4AAADE
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #18512C

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

Preview Lab → · Contrast checker → · Palette generator →

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