#0C4018#0C4018

#0C4018 is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.8% C 0.086 H 147.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#0C4018
RGBrgb(12, 64, 24)
HSLhsl(134, 68%, 15%)
HSVhsv(134, 81%, 25%)
CMYKcmyk(81.2%, 0%, 62.5%, 74.9%)
CIE-LABlab(23.04, -26.86, 19.51)
CIE-LCHlch(23.04, 33.19, 144.01°)
OKLaboklab(32.75% -0.0723 0.0466)
OKLCHoklch(32.75% 0.086 147.2)
XYZxyz(2.1497, 3.8107, 1.4862)
Luminance0.0381 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4018 #400C34
analogous
#1A400C #0C4018 #0C4032
triadic
#0C4018 #180C40 #40180C
tetradic
#0C4018 #0C1A40 #400C34 #40320C
square
#0C4018 #0C1A40 #400C34 #40320C
split-complementary
#0C4018 #320C40 #400C1A
monochromatic
#051A0A #051A0A #0C4018 #16742B #1FA73F

Accessibility & contrast

On white

11.92
#0C4018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#0C4018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4018
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4018#FFFFFF#000000##FFFFFF
##0C40181.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413A14
Deuteranopia (green-blind)
#3B351B
Tritanopia (blue-blind)
#003E37
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #0c4018;
/* rgb */ color: rgb(12, 64, 24);
/* oklch */ color: oklch(32.8% 0.086 147.2);
Tailwind
colors: {
  custom: {
    50: '#547556',
    500: '#0c4018',
    950: '#000000',
  },
}
SCSS
$custom: #0c4018;
$custom-light: #547556;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4018",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 24
  },
  "hsl": {
    "h": 133.846,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32754,
    "c": 0.08607,
    "h": 147.2
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#0C4018
secondary
#7C2C6A
accent
#3DC3EB
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030803
muted
#787B78

Preview Lab

Preview with #0C4018

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

Preview Lab → · Contrast checker → · Palette generator →

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