#0F5018#0F5018

#0F5018 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.9% C 0.108 H 145.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#0F5018
RGBrgb(15, 80, 24)
HSLhsl(128, 68%, 19%)
HSVhsv(128, 81%, 31%)
CMYKcmyk(81.3%, 0%, 70%, 68.6%)
CIE-LABlab(29.17, -32.74, 26.62)
CIE-LCHlch(29.17, 42.20, 140.89°)
OKLaboklab(37.86% -0.0884 0.062)
OKLCHoklch(37.86% 0.108 145)
XYZxyz(3.2303, 5.9045, 1.8334)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5018 #500F47
analogous
#26500F #0F5018 #0F5038
triadic
#0F5018 #180F50 #50180F
tetradic
#0F5018 #0F2650 #500F47 #50380F
square
#0F5018 #0F2650 #500F47 #50380F
split-complementary
#0F5018 #380F50 #500F26
monochromatic
#051A08 #051C09 #0F5018 #198427 #22B737

Accessibility & contrast

On white

9.63
#0F5018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#0F5018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5018
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5018#FFFFFF#000000##FFFFFF
##0F50181.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514811
Deuteranopia (green-blind)
#4A431D
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0f5018;
/* rgb */ color: rgb(15, 80, 24);
/* oklch */ color: oklch(37.9% 0.108 145.0);
Tailwind
colors: {
  custom: {
    50: '#5a8257',
    500: '#0f5018',
    950: '#000000',
  },
}
SCSS
$custom: #0f5018;
$custom-light: #5a8257;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5018",
  "rgb": {
    "r": 15,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 128.308,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.37857,
    "c": 0.10797,
    "h": 145
  },
  "luminance": 0.05905
}

Semantic roles & 50–950 ramp

primary
#0F5018
secondary
#8A317E
accent
#3DD3EB
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0F5018

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

Preview Lab → · Contrast checker → · Palette generator →

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