#0C471F#0C471F

#0C471F is a dark, moderate green. Relative luminance 0.047; OKLCH L 35.1% C 0.089 H 149.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#0C471F
RGBrgb(12, 71, 31)
HSLhsl(139, 71%, 16%)
HSVhsv(139, 83%, 28%)
CMYKcmyk(83.1%, 0%, 56.3%, 72.2%)
CIE-LABlab(25.81, -28.58, 18.80)
CIE-LCHlch(25.81, 34.20, 146.66°)
OKLaboklab(35.09% -0.0768 0.0456)
OKLCHoklch(35.09% 0.089 149.3)
XYZxyz(2.6520, 4.6833, 2.0603)
Luminance0.0468 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C471F #470C34
analogous
#17470C #0C471F #0C473D
triadic
#0C471F #1F0C47 #471F0C
tetradic
#0C471F #0C1747 #470C34 #473D0C
square
#0C471F #0C1747 #470C34 #473D0C
split-complementary
#0C471F #3D0C47 #470C17
monochromatic
#041A0B #041A0B #0C471F #157B36 #1EB04D

Accessibility & contrast

On white

10.84
#0C471F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#0C471F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C471F
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C471F#FFFFFF#000000##FFFFFF
##0C471F1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c471f;
/* rgb */ color: rgb(12, 71, 31);
/* oklch */ color: oklch(35.1% 0.089 149.3);
Tailwind
colors: {
  custom: {
    50: '#567b5b',
    500: '#0c471f',
    950: '#000000',
  },
}
SCSS
$custom: #0c471f;
$custom-light: #567b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c471f",
  "rgb": {
    "r": 12,
    "g": 71,
    "b": 31
  },
  "hsl": {
    "h": 139.322,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.35086,
    "c": 0.08932,
    "h": 149.3
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#0C471F
secondary
#832C67
accent
#3AB4EE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#030904
muted
#787B79

Preview Lab

Preview with #0C471F

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

Preview Lab → · Contrast checker → · Palette generator →

#0C471F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva