#0F5218#0F5218

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

Color values

HEX#0F5218
RGBrgb(15, 82, 24)
HSLhsl(128, 69%, 19%)
HSVhsv(128, 82%, 32%)
CMYKcmyk(81.7%, 0%, 70.7%, 67.8%)
CIE-LABlab(29.92, -33.51, 27.45)
CIE-LCHlch(29.92, 43.31, 140.68°)
OKLaboklab(38.48% -0.0905 0.0637)
OKLCHoklch(38.48% 0.111 144.8)
XYZxyz(3.3789, 6.2017, 1.8829)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5218 #520F49
analogous
#28520F #0F5218 #0F523A
triadic
#0F5218 #180F52 #52180F
tetradic
#0F5218 #0F2852 #520F49 #523A0F
square
#0F5218 #0F2852 #520F49 #523A0F
split-complementary
#0F5218 #3A0F52 #520F28
monochromatic
#051A08 #061E09 #0F5218 #188627 #22B936

Accessibility & contrast

On white

9.37
#0F5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5218
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5218#FFFFFF#000000##FFFFFF
##0F52181.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f5218;
/* rgb */ color: rgb(15, 82, 24);
/* oklch */ color: oklch(38.5% 0.111 144.8);
Tailwind
colors: {
  custom: {
    50: '#5a8358',
    500: '#0f5218',
    950: '#000000',
  },
}
SCSS
$custom: #0f5218;
$custom-light: #5a8358;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5218",
  "rgb": {
    "r": 15,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 128.06,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38476,
    "c": 0.11069,
    "h": 144.8
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#0F5218
secondary
#8C3180
accent
#3CD4EC
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0F5218

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

Preview Lab → · Contrast checker → · Palette generator →

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