#12571A#12571A

#12571A is a dark, moderate green. Relative luminance 0.070; OKLCH L 40.1% C 0.115 H 144.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#12571A
RGBrgb(18, 87, 26)
HSLhsl(127, 66%, 21%)
HSVhsv(127, 79%, 34%)
CMYKcmyk(79.3%, 0%, 70.1%, 65.9%)
CIE-LABlab(31.85, -34.63, 28.62)
CIE-LCHlch(31.85, 44.92, 140.43°)
OKLaboklab(40.11% -0.0936 0.0665)
OKLCHoklch(40.11% 0.115 144.6)
XYZxyz(3.8438, 7.0191, 2.1293)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12571A #57124F
analogous
#2C5712 #12571A #12573C
triadic
#12571A #1A1257 #571A12
tetradic
#12571A #122C57 #57124F #573C12
square
#12571A #122C57 #57124F #573C12
split-complementary
#12571A #3C1257 #57122C
monochromatic
#051908 #08240B #12571A #1C8A29 #27BC38

Accessibility & contrast

On white

8.74
#12571A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#12571A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12571A
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12571A#FFFFFF#000000##FFFFFF
##12571A1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E12
Deuteranopia (green-blind)
#51491F
Tritanopia (blue-blind)
#00554A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #12571a;
/* rgb */ color: rgb(18, 87, 26);
/* oklch */ color: oklch(40.1% 0.115 144.6);
Tailwind
colors: {
  custom: {
    50: '#5d8759',
    500: '#12571a',
    950: '#000000',
  },
}
SCSS
$custom: #12571a;
$custom-light: #5d8759;
$custom-dark: #000000;
JSON
{
  "hex": "#12571a",
  "rgb": {
    "r": 18,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 126.957,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40106,
    "c": 0.11477,
    "h": 144.6
  },
  "luminance": 0.0702
}

Semantic roles & 50–950 ramp

primary
#12571A
secondary
#903585
accent
#3FD5E9
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #12571A

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

Preview Lab → · Contrast checker → · Palette generator →

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