#0C481F#0C481F

#0C481F is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.4% C 0.091 H 149.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#0C481F
RGBrgb(12, 72, 31)
HSLhsl(139, 71%, 16%)
HSVhsv(139, 83%, 28%)
CMYKcmyk(83.3%, 0%, 56.9%, 71.8%)
CIE-LABlab(26.19, -28.99, 19.26)
CIE-LCHlch(26.19, 34.81, 146.40°)
OKLaboklab(35.4% -0.0779 0.0466)
OKLCHoklch(35.4% 0.091 149.1)
XYZxyz(2.7161, 4.8115, 2.0816)
Luminance0.0481 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C481F #480C35
analogous
#17480C #0C481F #0C483D
triadic
#0C481F #1F0C48 #481F0C
tetradic
#0C481F #0C1748 #480C35 #483D0C
square
#0C481F #0C1748 #480C35 #483D0C
split-complementary
#0C481F #3D0C48 #480C17
monochromatic
#041A0B #041A0B #0C481F #157C36 #1DB14C

Accessibility & contrast

On white

10.70
#0C481F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#0C481F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C481F
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C481F#FFFFFF#000000##FFFFFF
##0C481F1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49411B
Deuteranopia (green-blind)
#423C22
Tritanopia (blue-blind)
#00463F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0c481f;
/* rgb */ color: rgb(12, 72, 31);
/* oklch */ color: oklch(35.4% 0.091 149.1);
Tailwind
colors: {
  custom: {
    50: '#567c5b',
    500: '#0c481f',
    950: '#000000',
  },
}
SCSS
$custom: #0c481f;
$custom-light: #567c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c481f",
  "rgb": {
    "r": 12,
    "g": 72,
    "b": 31
  },
  "hsl": {
    "h": 139,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35399,
    "c": 0.09082,
    "h": 149.1
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#0C481F
secondary
#842C68
accent
#3AB5EE
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#030904
muted
#787B79

Preview Lab

Preview with #0C481F

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

Preview Lab → · Contrast checker → · Palette generator →

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