#0F520F#0F520F

#0F520F is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.4% C 0.117 H 142.9°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#0F520F
RGBrgb(15, 82, 15)
HSLhsl(120, 69%, 19%)
HSVhsv(120, 82%, 32%)
CMYKcmyk(81.7%, 0%, 81.7%, 67.8%)
CIE-LABlab(29.84, -34.46, 31.42)
CIE-LCHlch(29.84, 46.63, 137.64°)
OKLaboklab(38.39% -0.0935 0.0708)
OKLCHoklch(38.39% 0.117 142.9)
XYZxyz(3.3003, 6.1703, 1.4689)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F520F #520F52
analogous
#31520F #0F520F #0F5231
triadic
#0F520F #0F0F52 #520F0F
tetradic
#0F520F #0F3152 #520F52 #52310F
square
#0F520F #0F3152 #520F52 #52310F
split-complementary
#0F520F #310F52 #520F31
monochromatic
#051A05 #061E06 #0F520F #188618 #22B922

Accessibility & contrast

On white

9.40
#0F520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#0F520F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F520F
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F520F#FFFFFF#000000##FFFFFF
##0F520F1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544903
Deuteranopia (green-blind)
#4D4416
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f520f;
/* rgb */ color: rgb(15, 82, 15);
/* oklch */ color: oklch(38.4% 0.117 142.9);
Tailwind
colors: {
  custom: {
    50: '#5b8353',
    500: '#0f520f',
    950: '#000000',
  },
}
SCSS
$custom: #0f520f;
$custom-light: #5b8353;
$custom-dark: #000000;
JSON
{
  "hex": "#0f520f",
  "rgb": {
    "r": 15,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 120,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38386,
    "c": 0.11733,
    "h": 142.9
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#0F520F
secondary
#8C318C
accent
#3CECEC
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040B02
muted
#797C78

Preview Lab

Preview with #0F520F

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

Preview Lab → · Contrast checker → · Palette generator →

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