#0F5A1C#0F5A1C

#0F5A1C is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.0% C 0.118 H 145.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#0F5A1C
RGBrgb(15, 90, 28)
HSLhsl(130, 71%, 21%)
HSVhsv(130, 83%, 35%)
CMYKcmyk(83.3%, 0%, 68.9%, 64.7%)
CIE-LABlab(32.91, -36.01, 28.80)
CIE-LCHlch(32.91, 46.11, 141.35°)
OKLaboklab(40.98% -0.0971 0.0671)
OKLCHoklch(40.98% 0.118 145.4)
XYZxyz(4.0625, 7.4972, 2.3314)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A1C #5A0F4D
analogous
#275A0F #0F5A1C #0F5A41
triadic
#0F5A1C #1C0F5A #5A1C0F
tetradic
#0F5A1C #0F275A #5A0F4D #5A410F
square
#0F5A1C #0F275A #5A0F4D #5A410F
split-complementary
#0F5A1C #410F5A #5A0F27
monochromatic
#041A08 #06260C #0F5A1C #188E2C #20C33D

Accessibility & contrast

On white

8.40
#0F5A1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#0F5A1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5A1C
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A1C#FFFFFF#000000##FFFFFF
##0F5A1C1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5115
Deuteranopia (green-blind)
#534B21
Tritanopia (blue-blind)
#00584D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #0f5a1c;
/* rgb */ color: rgb(15, 90, 28);
/* oklch */ color: oklch(41.0% 0.118 145.4);
Tailwind
colors: {
  custom: {
    50: '#5c895b',
    500: '#0f5a1c',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a1c;
$custom-light: #5c895b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a1c",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 28
  },
  "hsl": {
    "h": 130.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40977,
    "c": 0.11802,
    "h": 145.4
  },
  "luminance": 0.07498
}

Semantic roles & 50–950 ramp

primary
#0F5A1C
secondary
#943183
accent
#3ACFEE
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0F5A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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