#0F5812#0F5812

#0F5812 is a dark, vivid green. Relative luminance 0.071; OKLCH L 40.3% C 0.123 H 143.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#0F5812
RGBrgb(15, 88, 18)
HSLhsl(122, 71%, 20%)
HSVhsv(122, 83%, 35%)
CMYKcmyk(83%, 0%, 79.5%, 65.5%)
CIE-LABlab(32.09, -36.37, 32.46)
CIE-LCHlch(32.09, 48.75, 138.25°)
OKLaboklab(40.26% -0.0986 0.0735)
OKLCHoklch(40.26% 0.123 143.3)
XYZxyz(3.7957, 7.1242, 1.7472)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5812 #580F55
analogous
#30580F #0F5812 #0F5837
triadic
#0F5812 #120F58 #58120F
tetradic
#0F5812 #0F3058 #580F55 #58370F
square
#0F5812 #0F3058 #580F55 #58370F
split-complementary
#0F5812 #370F58 #580F30
monochromatic
#041A05 #062407 #0F5812 #188C1D #21C127

Accessibility & contrast

On white

8.66
#0F5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#0F5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5812
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5812#FFFFFF#000000##FFFFFF
##0F58121.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F05
Deuteranopia (green-blind)
#524919
Tritanopia (blue-blind)
#00554A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #0f5812;
/* rgb */ color: rgb(15, 88, 18);
/* oklch */ color: oklch(40.3% 0.123 143.3);
Tailwind
colors: {
  custom: {
    50: '#5d8855',
    500: '#0f5812',
    950: '#000000',
  },
}
SCSS
$custom: #0f5812;
$custom-light: #5d8855;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5812",
  "rgb": {
    "r": 15,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 122.466,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40263,
    "c": 0.12294,
    "h": 143.3
  },
  "luminance": 0.07125
}

Semantic roles & 50–950 ramp

primary
#0F5812
secondary
#92318E
accent
#3AE6EE
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #0F5812

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

Preview Lab → · Contrast checker → · Palette generator →

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