#0F5120#0F5120

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

Color values

HEX#0F5120
RGBrgb(15, 81, 32)
HSLhsl(135, 69%, 19%)
HSVhsv(135, 81%, 32%)
CMYKcmyk(81.5%, 0%, 60.5%, 68.2%)
CIE-LABlab(29.64, -31.98, 22.90)
CIE-LCHlch(29.64, 39.33, 144.39°)
OKLaboklab(38.28% -0.086 0.0547)
OKLCHoklch(38.28% 0.102 147.5)
XYZxyz(3.3999, 6.0903, 2.3626)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5120 #510F40
analogous
#1F510F #0F5120 #0F5141
triadic
#0F5120 #200F51 #51200F
tetradic
#0F5120 #0F1F51 #510F40 #51410F
square
#0F5120 #0F1F51 #510F40 #51410F
split-complementary
#0F5120 #410F51 #510F1F
monochromatic
#051A0A #051D0C #0F5120 #198534 #22B849

Accessibility & contrast

On white

9.47
#0F5120 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5120
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5120#FFFFFF#000000##FFFFFF
##0F51201.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f5120;
/* rgb */ color: rgb(15, 81, 32);
/* oklch */ color: oklch(38.3% 0.102 147.5);
Tailwind
colors: {
  custom: {
    50: '#5a835d',
    500: '#0f5120',
    950: '#000000',
  },
}
SCSS
$custom: #0f5120;
$custom-light: #5a835d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5120",
  "rgb": {
    "r": 15,
    "g": 81,
    "b": 32
  },
  "hsl": {
    "h": 135.455,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38277,
    "c": 0.10197,
    "h": 147.5
  },
  "luminance": 0.06091
}

Semantic roles & 50–950 ramp

primary
#0F5120
secondary
#8B3174
accent
#3CBEEC
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0F5120

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

Preview Lab → · Contrast checker → · Palette generator →

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