#12571B#12571B

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

Color values

HEX#12571B
RGBrgb(18, 87, 27)
HSLhsl(128, 66%, 21%)
HSVhsv(128, 79%, 34%)
CMYKcmyk(79.3%, 0%, 69%, 65.9%)
CIE-LABlab(31.86, -34.50, 28.13)
CIE-LCHlch(31.86, 44.52, 140.81°)
OKLaboklab(40.12% -0.0932 0.0655)
OKLCHoklch(40.12% 0.114 144.9)
XYZxyz(3.8552, 7.0237, 2.1892)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12571B #57124E
analogous
#2B5712 #12571B #12573D
triadic
#12571B #1B1257 #571B12
tetradic
#12571B #122B57 #57124E #573D12
square
#12571B #122B57 #57124E #573D12
split-complementary
#12571B #3D1257 #57122B
monochromatic
#051908 #08240B #12571B #1C8A2B #27BC3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12571B#FFFFFF#000000##FFFFFF
##12571B1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E14
Deuteranopia (green-blind)
#514920
Tritanopia (blue-blind)
#00554A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #12571b;
/* rgb */ color: rgb(18, 87, 27);
/* oklch */ color: oklch(40.1% 0.114 144.9);
Tailwind
colors: {
  custom: {
    50: '#5d875a',
    500: '#12571b',
    950: '#000000',
  },
}
SCSS
$custom: #12571b;
$custom-light: #5d875a;
$custom-dark: #000000;
JSON
{
  "hex": "#12571b",
  "rgb": {
    "r": 18,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 127.826,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40118,
    "c": 0.11394,
    "h": 144.9
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#12571B
secondary
#903584
accent
#3FD3E9
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #12571B

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

Preview Lab → · Contrast checker → · Palette generator →

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