#0F510C#0F510C

#0F510C is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.1% C 0.118 H 142.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#0F510C
RGBrgb(15, 81, 12)
HSLhsl(117, 74%, 18%)
HSVhsv(117, 85%, 32%)
CMYKcmyk(81.5%, 0%, 85.2%, 68.2%)
CIE-LABlab(29.44, -34.34, 32.18)
CIE-LCHlch(29.44, 47.06, 136.85°)
OKLaboklab(38.05% -0.0934 0.072)
OKLCHoklch(38.05% 0.118 142.4)
XYZxyz(3.2056, 6.0126, 1.3394)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F510C #4E0C51
analogous
#31510C #0F510C #0C512B
triadic
#0F510C #0C0F51 #510C0F
tetradic
#0F510C #0C3151 #4E0C51 #512B0C
square
#0F510C #0C3151 #4E0C51 #512B0C
split-complementary
#0F510C #2B0C51 #510C31
monochromatic
#051B04 #051C04 #0F510C #198614 #23BC1C

Accessibility & contrast

On white

9.53
#0F510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#0F510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F510C
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F510C#FFFFFF#000000##FFFFFF
##0F510C1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534800
Deuteranopia (green-blind)
#4C4314
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0f510c;
/* rgb */ color: rgb(15, 81, 12);
/* oklch */ color: oklch(38.1% 0.118 142.4);
Tailwind
colors: {
  custom: {
    50: '#5b8351',
    500: '#0f510c',
    950: '#000000',
  },
}
SCSS
$custom: #0f510c;
$custom-light: #5b8351;
$custom-dark: #000000;
JSON
{
  "hex": "#0f510c",
  "rgb": {
    "r": 15,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 117.391,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38053,
    "c": 0.11787,
    "h": 142.4
  },
  "luminance": 0.06013
}

Semantic roles & 50–950 ramp

primary
#0F510C
secondary
#882C8C
accent
#37F1E9
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0F510C

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

Preview Lab → · Contrast checker → · Palette generator →

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