#0F5817#0F5817

#0F5817 is a dark, moderate green. Relative luminance 0.071; OKLCH L 40.3% C 0.119 H 144.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#0F5817
RGBrgb(15, 88, 23)
HSLhsl(127, 71%, 20%)
HSVhsv(127, 83%, 35%)
CMYKcmyk(83%, 0%, 73.9%, 65.5%)
CIE-LABlab(32.13, -35.87, 30.33)
CIE-LCHlch(32.13, 46.97, 139.78°)
OKLaboklab(40.31% -0.0969 0.0697)
OKLCHoklch(40.31% 0.119 144.3)
XYZxyz(3.8411, 7.1424, 1.9866)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5817 #580F50
analogous
#2C580F #0F5817 #0F583B
triadic
#0F5817 #170F58 #58170F
tetradic
#0F5817 #0F2C58 #580F50 #583B0F
square
#0F5817 #0F2C58 #580F50 #583B0F
split-complementary
#0F5817 #3B0F58 #580F2C
monochromatic
#041A07 #062409 #0F5817 #188C25 #21C132

Accessibility & contrast

On white

8.65
#0F5817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#0F5817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5817
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5817#FFFFFF#000000##FFFFFF
##0F58171.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0E
Deuteranopia (green-blind)
#52491D
Tritanopia (blue-blind)
#00554B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #0f5817;
/* rgb */ color: rgb(15, 88, 23);
/* oklch */ color: oklch(40.3% 0.119 144.3);
Tailwind
colors: {
  custom: {
    50: '#5c8858',
    500: '#0f5817',
    950: '#000000',
  },
}
SCSS
$custom: #0f5817;
$custom-light: #5c8858;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5817",
  "rgb": {
    "r": 15,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 126.575,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.4031,
    "c": 0.1194,
    "h": 144.3
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#0F5817
secondary
#923187
accent
#3ADAEE
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #0F5817

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

Preview Lab → · Contrast checker → · Palette generator →

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