#0F5A17#0F5A17

#0F5A17 is a dark, vivid green. Relative luminance 0.075; OKLCH L 40.9% C 0.122 H 144.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#0F5A17
RGBrgb(15, 90, 23)
HSLhsl(126, 71%, 21%)
HSVhsv(126, 83%, 35%)
CMYKcmyk(83.3%, 0%, 74.4%, 64.7%)
CIE-LABlab(32.87, -36.60, 31.11)
CIE-LCHlch(32.87, 48.04, 139.63°)
OKLaboklab(40.92% -0.0989 0.0714)
OKLCHoklch(40.92% 0.122 144.2)
XYZxyz(4.0075, 7.4753, 2.0421)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A17 #5A0F52
analogous
#2C5A0F #0F5A17 #0F5A3C
triadic
#0F5A17 #170F5A #5A170F
tetradic
#0F5A17 #0F2C5A #5A0F52 #5A3C0F
square
#0F5A17 #0F2C5A #5A0F52 #5A3C0F
split-complementary
#0F5A17 #3C0F5A #5A0F2C
monochromatic
#041A07 #06260A #0F5A17 #188E24 #20C332

Accessibility & contrast

On white

8.42
#0F5A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5A17
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A17#FFFFFF#000000##FFFFFF
##0F5A171.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510D
Deuteranopia (green-blind)
#544B1E
Tritanopia (blue-blind)
#00574D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #0f5a17;
/* rgb */ color: rgb(15, 90, 23);
/* oklch */ color: oklch(40.9% 0.122 144.2);
Tailwind
colors: {
  custom: {
    50: '#5d8958',
    500: '#0f5a17',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a17;
$custom-light: #5d8958;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a17",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 126.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.12198,
    "h": 144.2
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#0F5A17
secondary
#943189
accent
#3ADBEE
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C03
muted
#797D78

Preview Lab

Preview with #0F5A17

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

Preview Lab → · Contrast checker → · Palette generator →

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