#12471F#12471F

#12471F is a dark, moderate green. Relative luminance 0.047; OKLCH L 35.3% C 0.087 H 148.1°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#12471F
RGBrgb(18, 71, 31)
HSLhsl(135, 60%, 17%)
HSVhsv(135, 75%, 28%)
CMYKcmyk(74.6%, 0%, 56.3%, 72.2%)
CIE-LABlab(25.96, -27.38, 19.01)
CIE-LCHlch(25.96, 33.33, 145.22°)
OKLaboklab(35.25% -0.0738 0.046)
OKLCHoklch(35.25% 0.087 148.1)
XYZxyz(2.7498, 4.7337, 2.0648)
Luminance0.0473 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12471F #47123A
analogous
#1F4712 #12471F #12473A
triadic
#12471F #1F1247 #471F12
tetradic
#12471F #121F47 #47123A #473A12
square
#12471F #121F47 #47123A #473A12
split-complementary
#12471F #3A1247 #47121F
monochromatic
#06180B #06180B #12471F #1E7834 #2BA94A

Accessibility & contrast

On white

10.79
#12471F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#12471F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12471F
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12471F#FFFFFF#000000##FFFFFF
##12471F1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48401C
Deuteranopia (green-blind)
#413C22
Tritanopia (blue-blind)
#01453E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #12471f;
/* rgb */ color: rgb(18, 71, 31);
/* oklch */ color: oklch(35.3% 0.087 148.1);
Tailwind
colors: {
  custom: {
    50: '#587b5b',
    500: '#12471f',
    950: '#000000',
  },
}
SCSS
$custom: #12471f;
$custom-light: #587b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#12471f",
  "rgb": {
    "r": 18,
    "g": 71,
    "b": 31
  },
  "hsl": {
    "h": 134.717,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.35253,
    "c": 0.08699,
    "h": 148.1
  },
  "luminance": 0.04734
}

Semantic roles & 50–950 ramp

primary
#12471F
secondary
#80356E
accent
#45BCE3
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040904
muted
#797B79

Preview Lab

Preview with #12471F

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

Preview Lab → · Contrast checker → · Palette generator →

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