#12571D#12571D

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

Color values

HEX#12571D
RGBrgb(18, 87, 29)
HSLhsl(130, 66%, 21%)
HSVhsv(130, 79%, 34%)
CMYKcmyk(79.3%, 0%, 66.7%, 65.9%)
CIE-LABlab(31.88, -34.24, 27.15)
CIE-LCHlch(31.88, 43.70, 141.59°)
OKLaboklab(40.14% -0.0924 0.0637)
OKLCHoklch(40.14% 0.112 145.4)
XYZxyz(3.8791, 7.0333, 2.3153)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12571D #57124C
analogous
#295712 #12571D #12573F
triadic
#12571D #1D1257 #571D12
tetradic
#12571D #122957 #57124C #573F12
square
#12571D #122957 #57124C #573F12
split-complementary
#12571D #3F1257 #571229
monochromatic
#051908 #08240C #12571D #1C8A2E #27BC3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12571D#FFFFFF#000000##FFFFFF
##12571D1.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)
#584E17
Deuteranopia (green-blind)
#514922
Tritanopia (blue-blind)
#00554B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #12571d;
/* rgb */ color: rgb(18, 87, 29);
/* oklch */ color: oklch(40.1% 0.112 145.4);
Tailwind
colors: {
  custom: {
    50: '#5d875b',
    500: '#12571d',
    950: '#000000',
  },
}
SCSS
$custom: #12571d;
$custom-light: #5d875b;
$custom-dark: #000000;
JSON
{
  "hex": "#12571d",
  "rgb": {
    "r": 18,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 129.565,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40143,
    "c": 0.1122,
    "h": 145.4
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#12571D
secondary
#903581
accent
#3FCEE9
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #12571D

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

Preview Lab → · Contrast checker → · Palette generator →

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