#0F5017#0F5017

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

Color values

HEX#0F5017
RGBrgb(15, 80, 23)
HSLhsl(127, 68%, 19%)
HSVhsv(127, 81%, 31%)
CMYKcmyk(81.3%, 0%, 71.2%, 68.6%)
CIE-LABlab(29.16, -32.87, 27.11)
CIE-LCHlch(29.16, 42.60, 140.49°)
OKLaboklab(37.85% -0.0888 0.0629)
OKLCHoklch(37.85% 0.109 144.7)
XYZxyz(3.2201, 5.9004, 1.7796)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5017 #500F48
analogous
#27500F #0F5017 #0F5037
triadic
#0F5017 #170F50 #50170F
tetradic
#0F5017 #0F2750 #500F48 #50370F
square
#0F5017 #0F2750 #500F48 #50370F
split-complementary
#0F5017 #370F50 #500F27
monochromatic
#051A07 #051C08 #0F5017 #198426 #22B735

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F5017#FFFFFF#000000##FFFFFF
##0F50171.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)
#524810
Deuteranopia (green-blind)
#4A431C
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0f5017;
/* rgb */ color: rgb(15, 80, 23);
/* oklch */ color: oklch(37.8% 0.109 144.7);
Tailwind
colors: {
  custom: {
    50: '#5a8257',
    500: '#0f5017',
    950: '#000000',
  },
}
SCSS
$custom: #0f5017;
$custom-light: #5a8257;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5017",
  "rgb": {
    "r": 15,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 127.385,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.37845,
    "c": 0.10882,
    "h": 144.7
  },
  "luminance": 0.05901
}

Semantic roles & 50–950 ramp

primary
#0F5017
secondary
#8A317F
accent
#3DD6EB
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0F5017

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

Preview Lab → · Contrast checker → · Palette generator →

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