#12571C#12571C

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

Color values

HEX#12571C
RGBrgb(18, 87, 28)
HSLhsl(129, 66%, 21%)
HSVhsv(129, 79%, 34%)
CMYKcmyk(79.3%, 0%, 67.8%, 65.9%)
CIE-LABlab(31.87, -34.37, 27.64)
CIE-LCHlch(31.87, 44.11, 141.19°)
OKLaboklab(40.13% -0.0928 0.0646)
OKLCHoklch(40.13% 0.113 145.2)
XYZxyz(3.8670, 7.0284, 2.2512)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12571C #57124D
analogous
#2A5712 #12571C #12573E
triadic
#12571C #1C1257 #571C12
tetradic
#12571C #122A57 #57124D #573E12
square
#12571C #122A57 #57124D #573E12
split-complementary
#12571C #3E1257 #57122A
monochromatic
#051908 #08240C #12571C #1C8A2C #27BC3D

Accessibility & contrast

On white

8.73
#12571C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#12571C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12571C
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12571C#FFFFFF#000000##FFFFFF
##12571C1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E15
Deuteranopia (green-blind)
#514921
Tritanopia (blue-blind)
#00554B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #12571c;
/* rgb */ color: rgb(18, 87, 28);
/* oklch */ color: oklch(40.1% 0.113 145.2);
Tailwind
colors: {
  custom: {
    50: '#5d875b',
    500: '#12571c',
    950: '#000000',
  },
}
SCSS
$custom: #12571c;
$custom-light: #5d875b;
$custom-dark: #000000;
JSON
{
  "hex": "#12571c",
  "rgb": {
    "r": 18,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 128.696,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.11307,
    "h": 145.2
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#12571C
secondary
#903583
accent
#3FD0E9
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #12571C

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

Preview Lab → · Contrast checker → · Palette generator →

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