#0F4812#0F4812

#0F4812 is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.3% C 0.102 H 143.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#0F4812
RGBrgb(15, 72, 18)
HSLhsl(123, 66%, 17%)
HSVhsv(123, 79%, 28%)
CMYKcmyk(79.2%, 0%, 75%, 71.8%)
CIE-LABlab(26.10, -30.35, 26.22)
CIE-LCHlch(26.10, 40.11, 139.18°)
OKLaboklab(35.29% -0.0822 0.0604)
OKLCHoklch(35.29% 0.102 143.7)
XYZxyz(2.6234, 4.7797, 1.3565)
Luminance0.0478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F4812 #480F45
analogous
#29480F #0F4812 #0F482F
triadic
#0F4812 #120F48 #48120F
tetradic
#0F4812 #0F2948 #480F45 #482F0F
square
#0F4812 #0F2948 #480F45 #482F0F
split-complementary
#0F4812 #2F0F48 #480F29
monochromatic
#051906 #051906 #0F4812 #1A7B1F #24AD2B

Accessibility & contrast

On white

10.74
#0F4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F4812
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F4812#FFFFFF#000000##FFFFFF
##0F48121.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410B
Deuteranopia (green-blind)
#433C17
Tritanopia (blue-blind)
#00463D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #0f4812;
/* rgb */ color: rgb(15, 72, 18);
/* oklch */ color: oklch(35.3% 0.102 143.7);
Tailwind
colors: {
  custom: {
    50: '#587c53',
    500: '#0f4812',
    950: '#000000',
  },
}
SCSS
$custom: #0f4812;
$custom-light: #587c53;
$custom-dark: #000000;
JSON
{
  "hex": "#0f4812",
  "rgb": {
    "r": 15,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 123.158,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35289,
    "c": 0.10202,
    "h": 143.7
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#0F4812
secondary
#82307E
accent
#3FE0E8
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040902
muted
#797B78

Preview Lab

Preview with #0F4812

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

Preview Lab → · Contrast checker → · Palette generator →

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