#0F5122#0F5122

#0F5122 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.100 H 148.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#0F5122
RGBrgb(15, 81, 34)
HSLhsl(137, 69%, 19%)
HSVhsv(137, 81%, 32%)
CMYKcmyk(81.5%, 0%, 58%, 68.2%)
CIE-LABlab(29.67, -31.64, 21.82)
CIE-LCHlch(29.67, 38.44, 145.42°)
OKLaboklab(38.31% -0.0851 0.0525)
OKLCHoklch(38.31% 0.1 148.3)
XYZxyz(3.4279, 6.1015, 2.5101)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5122 #510F3E
analogous
#1D510F #0F5122 #0F5143
triadic
#0F5122 #220F51 #51220F
tetradic
#0F5122 #0F1D51 #510F3E #51430F
square
#0F5122 #0F1D51 #510F3E #51430F
split-complementary
#0F5122 #430F51 #510F1D
monochromatic
#051A0B #051D0C #0F5122 #198538 #22B84D

Accessibility & contrast

On white

9.46
#0F5122 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#0F5122 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5122
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5122#FFFFFF#000000##FFFFFF
##0F51221.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491E
Deuteranopia (green-blind)
#4A4426
Tritanopia (blue-blind)
#004F46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f5122;
/* rgb */ color: rgb(15, 81, 34);
/* oklch */ color: oklch(38.3% 0.100 148.3);
Tailwind
colors: {
  custom: {
    50: '#5a835e',
    500: '#0f5122',
    950: '#000000',
  },
}
SCSS
$custom: #0f5122;
$custom-light: #5a835e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5122",
  "rgb": {
    "r": 15,
    "g": 81,
    "b": 34
  },
  "hsl": {
    "h": 137.273,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.09998,
    "h": 148.3
  },
  "luminance": 0.06102
}

Semantic roles & 50–950 ramp

primary
#0F5122
secondary
#8B3171
accent
#3CB9EC
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0F5122

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

Preview Lab → · Contrast checker → · Palette generator →

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