#12571F#12571F

#12571F is a dark, moderate green. Relative luminance 0.070; OKLCH L 40.2% C 0.110 H 146.0°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#12571F
RGBrgb(18, 87, 31)
HSLhsl(131, 66%, 21%)
HSVhsv(131, 79%, 34%)
CMYKcmyk(79.3%, 0%, 64.4%, 65.9%)
CIE-LABlab(31.91, -33.96, 26.13)
CIE-LCHlch(31.91, 42.86, 142.42°)
OKLaboklab(40.17% -0.0916 0.0617)
OKLCHoklch(40.17% 0.11 146)
XYZxyz(3.9047, 7.0435, 2.4498)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12571F #57124A
analogous
#285712 #12571F #125741
triadic
#12571F #1F1257 #571F12
tetradic
#12571F #122857 #57124A #574112
square
#12571F #122857 #57124A #574112
split-complementary
#12571F #411257 #571228
monochromatic
#051909 #08240D #12571F #1C8A31 #27BC43

Accessibility & contrast

On white

8.72
#12571F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12571F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12571F#FFFFFF#000000##FFFFFF
##12571F1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E19
Deuteranopia (green-blind)
#504924
Tritanopia (blue-blind)
#00554B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #12571f;
/* rgb */ color: rgb(18, 87, 31);
/* oklch */ color: oklch(40.2% 0.110 146.0);
Tailwind
colors: {
  custom: {
    50: '#5c875d',
    500: '#12571f',
    950: '#000000',
  },
}
SCSS
$custom: #12571f;
$custom-light: #5c875d;
$custom-dark: #000000;
JSON
{
  "hex": "#12571f",
  "rgb": {
    "r": 18,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 131.304,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40169,
    "c": 0.1104,
    "h": 146
  },
  "luminance": 0.07044
}

Semantic roles & 50–950 ramp

primary
#12571F
secondary
#90357F
accent
#3FC9E9
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #12571F

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

Preview Lab → · Contrast checker → · Palette generator →

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