#0F5212#0F5212

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

Color values

HEX#0F5212
RGBrgb(15, 82, 18)
HSLhsl(123, 69%, 19%)
HSVhsv(123, 82%, 32%)
CMYKcmyk(81.7%, 0%, 78%, 67.8%)
CIE-LABlab(29.86, -34.18, 30.19)
CIE-LCHlch(29.86, 45.60, 138.55°)
OKLaboklab(38.41% -0.0926 0.0687)
OKLCHoklch(38.41% 0.115 143.4)
XYZxyz(3.3233, 6.1794, 1.5898)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5212 #520F4F
analogous
#2E520F #0F5212 #0F5234
triadic
#0F5212 #120F52 #52120F
tetradic
#0F5212 #0F2E52 #520F4F #52340F
square
#0F5212 #0F2E52 #520F4F #52340F
split-complementary
#0F5212 #340F52 #520F2E
monochromatic
#051A06 #061E07 #0F5212 #18861D #22B929

Accessibility & contrast

On white

9.39
#0F5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5212
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5212#FFFFFF#000000##FFFFFF
##0F52121.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f5212;
/* rgb */ color: rgb(15, 82, 18);
/* oklch */ color: oklch(38.4% 0.115 143.4);
Tailwind
colors: {
  custom: {
    50: '#5b8354',
    500: '#0f5212',
    950: '#000000',
  },
}
SCSS
$custom: #0f5212;
$custom-light: #5b8354;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5212",
  "rgb": {
    "r": 15,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 122.687,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38412,
    "c": 0.11532,
    "h": 143.4
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#0F5212
secondary
#8C3188
accent
#3CE4EC
background
#F5F8F5
surface
#E9EFE8
border
#C5CAC4
text
#040B03
muted
#797C78

Preview Lab

Preview with #0F5212

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

Preview Lab → · Contrast checker → · Palette generator →

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