#12470C#12470C

#12470C is a dark, moderate green. Relative luminance 0.047; OKLCH L 35.0% C 0.104 H 141.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#12470C
RGBrgb(18, 71, 12)
HSLhsl(114, 71%, 16%)
HSVhsv(114, 83%, 28%)
CMYKcmyk(74.6%, 0%, 83.1%, 72.2%)
CIE-LABlab(25.75, -29.89, 28.58)
CIE-LCHlch(25.75, 41.36, 136.28°)
OKLaboklab(35% -0.0815 0.0644)
OKLCHoklch(35% 0.104 141.7)
XYZxyz(2.5689, 4.6614, 1.1121)
Luminance0.0466 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12470C #410C47
analogous
#30470C #12470C #0C4724
triadic
#12470C #0C1247 #470C12
tetradic
#12470C #0C3047 #410C47 #47240C
square
#12470C #0C3047 #410C47 #47240C
split-complementary
#12470C #240C47 #470C30
monochromatic
#071A04 #071A04 #12470C #1F7B15 #2DB01E

Accessibility & contrast

On white

10.87
#12470C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#12470C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12470C
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12470C#FFFFFF#000000##FFFFFF
##12470C1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494003
Deuteranopia (green-blind)
#433B12
Tritanopia (blue-blind)
#07453C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #12470c;
/* rgb */ color: rgb(18, 71, 12);
/* oklch */ color: oklch(35.0% 0.104 141.7);
Tailwind
colors: {
  custom: {
    50: '#597b4f',
    500: '#12470c',
    950: '#000000',
  },
}
SCSS
$custom: #12470c;
$custom-light: #597b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#12470c",
  "rgb": {
    "r": 18,
    "g": 71,
    "b": 12
  },
  "hsl": {
    "h": 113.898,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.35005,
    "c": 0.10392,
    "h": 141.7
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#12470C
secondary
#7A2C83
accent
#3AEEDC
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040902
muted
#797B78

Preview Lab

Preview with #12470C

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

Preview Lab → · Contrast checker → · Palette generator →

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