#0F5A12#0F5A12

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

Color values

HEX#0F5A12
RGBrgb(15, 90, 18)
HSLhsl(122, 71%, 21%)
HSVhsv(122, 83%, 35%)
CMYKcmyk(83.3%, 0%, 80%, 64.7%)
CIE-LABlab(32.83, -37.09, 33.21)
CIE-LCHlch(32.83, 49.78, 138.16°)
OKLaboklab(40.88% -0.1005 0.075)
OKLCHoklch(40.88% 0.125 143.3)
XYZxyz(3.9621, 7.4571, 1.8027)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A12 #5A0F57
analogous
#315A0F #0F5A12 #0F5A37
triadic
#0F5A12 #120F5A #5A120F
tetradic
#0F5A12 #0F315A #5A0F57 #5A370F
square
#0F5A12 #0F315A #5A0F57 #5A370F
split-complementary
#0F5A12 #370F5A #5A0F31
monochromatic
#041A05 #062608 #0F5A12 #188E1C #20C327

Accessibility & contrast

On white

8.43
#0F5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#0F5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5A12
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A12#FFFFFF#000000##FFFFFF
##0F5A121.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5105
Deuteranopia (green-blind)
#544B1A
Tritanopia (blue-blind)
#00574C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #0f5a12;
/* rgb */ color: rgb(15, 90, 18);
/* oklch */ color: oklch(40.9% 0.125 143.3);
Tailwind
colors: {
  custom: {
    50: '#5d8955',
    500: '#0f5a12',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a12;
$custom-light: #5d8955;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a12",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 122.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40876,
    "c": 0.12543,
    "h": 143.3
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

primary
#0F5A12
secondary
#943190
accent
#3AE7EE
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C03
muted
#797D78

Preview Lab

Preview with #0F5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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