#18571F#18571F

#18571F is a dark, moderate green. Relative luminance 0.071; OKLCH L 40.3% C 0.108 H 145.0°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#18571F
RGBrgb(24, 87, 31)
HSLhsl(127, 57%, 22%)
HSVhsv(127, 72%, 34%)
CMYKcmyk(72.4%, 0%, 64.4%, 65.9%)
CIE-LABlab(32.05, -32.75, 26.34)
CIE-LCHlch(32.05, 42.03, 141.19°)
OKLaboklab(40.34% -0.0886 0.0621)
OKLCHoklch(40.34% 0.108 145)
XYZxyz(4.0319, 7.1091, 2.4558)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18571F #571850
analogous
#315718 #18571F #18573F
triadic
#18571F #1F1857 #571F18
tetradic
#18571F #183157 #571850 #573F18
square
#18571F #183157 #571850 #573F18
split-complementary
#18571F #3F1857 #571831
monochromatic
#071809 #0B270E #18571F #258730 #32B741

Accessibility & contrast

On white

8.67
#18571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#18571F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18571F
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18571F#FFFFFF#000000##FFFFFF
##18571F1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F19
Deuteranopia (green-blind)
#514924
Tritanopia (blue-blind)
#06554B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #18571f;
/* rgb */ color: rgb(24, 87, 31);
/* oklch */ color: oklch(40.3% 0.108 145.0);
Tailwind
colors: {
  custom: {
    50: '#5f875d',
    500: '#18571f',
    950: '#000000',
  },
}
SCSS
$custom: #18571f;
$custom-light: #5f875d;
$custom-dark: #000000;
JSON
{
  "hex": "#18571f",
  "rgb": {
    "r": 24,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 126.667,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.40335,
    "c": 0.10817,
    "h": 145
  },
  "luminance": 0.0711
}

Semantic roles & 50–950 ramp

primary
#18571F
secondary
#8E3D85
accent
#48CFE0
background
#F5F8F5
surface
#EAEFE9
border
#C6CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #18571F

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

Preview Lab → · Contrast checker → · Palette generator →

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