#0F5012#0F5012

#0F5012 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.8% C 0.113 H 143.5°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#0F5012
RGBrgb(15, 80, 18)
HSLhsl(123, 68%, 19%)
HSVhsv(123, 81%, 31%)
CMYKcmyk(81.3%, 0%, 77.5%, 68.6%)
CIE-LABlab(29.11, -33.43, 29.41)
CIE-LCHlch(29.11, 44.53, 138.66°)
OKLaboklab(37.79% -0.0906 0.0671)
OKLCHoklch(37.79% 0.113 143.5)
XYZxyz(3.1746, 5.8822, 1.5402)
Luminance0.0588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5012 #500F4D
analogous
#2C500F #0F5012 #0F5032
triadic
#0F5012 #120F50 #50120F
tetradic
#0F5012 #0F2C50 #500F4D #50320F
square
#0F5012 #0F2C50 #500F4D #50320F
split-complementary
#0F5012 #320F50 #500F2C
monochromatic
#051A06 #051C06 #0F5012 #19841E #22B729

Accessibility & contrast

On white

9.65
#0F5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#0F5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5012
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5012#FFFFFF#000000##FFFFFF
##0F50121.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4B4318
Tritanopia (blue-blind)
#004D44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0f5012;
/* rgb */ color: rgb(15, 80, 18);
/* oklch */ color: oklch(37.8% 0.113 143.5);
Tailwind
colors: {
  custom: {
    50: '#5a8254',
    500: '#0f5012',
    950: '#000000',
  },
}
SCSS
$custom: #0f5012;
$custom-light: #5a8254;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5012",
  "rgb": {
    "r": 15,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 122.769,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.37792,
    "c": 0.11273,
    "h": 143.5
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

primary
#0F5012
secondary
#8A3186
accent
#3DE3EB
background
#F5F8F4
surface
#E9EFE8
border
#C5CAC4
text
#040A03
muted
#797C78

Preview Lab

Preview with #0F5012

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

Preview Lab → · Contrast checker → · Palette generator →

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