#0F5217#0F5217

#0F5217 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.5% C 0.112 H 144.6°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#0F5217
RGBrgb(15, 82, 23)
HSLhsl(127, 69%, 19%)
HSVhsv(127, 82%, 32%)
CMYKcmyk(81.7%, 0%, 72%, 67.8%)
CIE-LABlab(29.91, -33.63, 27.92)
CIE-LCHlch(29.91, 43.71, 140.29°)
OKLaboklab(38.46% -0.0909 0.0646)
OKLCHoklch(38.46% 0.112 144.6)
XYZxyz(3.3687, 6.1976, 1.8292)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5217 #520F4A
analogous
#29520F #0F5217 #0F5239
triadic
#0F5217 #170F52 #52170F
tetradic
#0F5217 #0F2952 #520F4A #52390F
square
#0F5217 #0F2952 #520F4A #52390F
split-complementary
#0F5217 #390F52 #520F29
monochromatic
#051A07 #061E08 #0F5217 #188626 #22B934

Accessibility & contrast

On white

9.38
#0F5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#0F5217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5217
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5217#FFFFFF#000000##FFFFFF
##0F52171.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0F
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f5217;
/* rgb */ color: rgb(15, 82, 23);
/* oklch */ color: oklch(38.5% 0.112 144.6);
Tailwind
colors: {
  custom: {
    50: '#5a8357',
    500: '#0f5217',
    950: '#000000',
  },
}
SCSS
$custom: #0f5217;
$custom-light: #5a8357;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5217",
  "rgb": {
    "r": 15,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 127.164,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38464,
    "c": 0.11151,
    "h": 144.6
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

primary
#0F5217
secondary
#8C3181
accent
#3CD7EC
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0F5217

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

Preview Lab → · Contrast checker → · Palette generator →

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