#0F5A18#0F5A18

#0F5A18 is a dark, vivid green. Relative luminance 0.075; OKLCH L 40.9% C 0.121 H 144.4°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#0F5A18
RGBrgb(15, 90, 24)
HSLhsl(127, 71%, 21%)
HSVhsv(127, 83%, 35%)
CMYKcmyk(83.3%, 0%, 73.3%, 64.7%)
CIE-LABlab(32.87, -36.49, 30.67)
CIE-LCHlch(32.87, 47.66, 139.96°)
OKLaboklab(40.93% -0.0986 0.0705)
OKLCHoklch(40.93% 0.121 144.4)
XYZxyz(4.0178, 7.4794, 2.0959)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A18 #5A0F51
analogous
#2B5A0F #0F5A18 #0F5A3D
triadic
#0F5A18 #180F5A #5A180F
tetradic
#0F5A18 #0F2B5A #5A0F51 #5A3D0F
square
#0F5A18 #0F2B5A #5A0F51 #5A3D0F
split-complementary
#0F5A18 #3D0F5A #5A0F2B
monochromatic
#041A07 #06260A #0F5A18 #188E26 #20C334

Accessibility & contrast

On white

8.41
#0F5A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#0F5A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5A18
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A18#FFFFFF#000000##FFFFFF
##0F5A181.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510F
Deuteranopia (green-blind)
#544B1E
Tritanopia (blue-blind)
#00574D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #0f5a18;
/* rgb */ color: rgb(15, 90, 24);
/* oklch */ color: oklch(40.9% 0.121 144.4);
Tailwind
colors: {
  custom: {
    50: '#5d8959',
    500: '#0f5a18',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a18;
$custom-light: #5d8959;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a18",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 24
  },
  "hsl": {
    "h": 127.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40932,
    "c": 0.12123,
    "h": 144.4
  },
  "luminance": 0.0748
}

Semantic roles & 50–950 ramp

primary
#0F5A18
secondary
#943188
accent
#3AD9EE
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050C03
muted
#797D78

Preview Lab

Preview with #0F5A18

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

Preview Lab → · Contrast checker → · Palette generator →

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