#0F5126#0F5126

#0F5126 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.096 H 150.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#0F5126
RGBrgb(15, 81, 38)
HSLhsl(141, 69%, 19%)
HSVhsv(141, 81%, 32%)
CMYKcmyk(81.5%, 0%, 53.1%, 68.2%)
CIE-LABlab(29.73, -30.93, 19.59)
CIE-LCHlch(29.73, 36.61, 147.66°)
OKLaboklab(38.38% -0.0832 0.0477)
OKLCHoklch(38.38% 0.096 150.2)
XYZxyz(3.4890, 6.1260, 2.8319)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5126 #510F3A
analogous
#19510F #0F5126 #0F5147
triadic
#0F5126 #260F51 #51260F
tetradic
#0F5126 #0F1951 #510F3A #51470F
square
#0F5126 #0F1951 #510F3A #51470F
split-complementary
#0F5126 #470F51 #510F19
monochromatic
#051A0C #051D0E #0F5126 #19853E #22B856

Accessibility & contrast

On white

9.44
#0F5126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#0F5126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5126
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5126#FFFFFF#000000##FFFFFF
##0F51261.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524923
Deuteranopia (green-blind)
#4A4429
Tritanopia (blue-blind)
#004F47
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f5126;
/* rgb */ color: rgb(15, 81, 38);
/* oklch */ color: oklch(38.4% 0.096 150.2);
Tailwind
colors: {
  custom: {
    50: '#598361',
    500: '#0f5126',
    950: '#000000',
  },
}
SCSS
$custom: #0f5126;
$custom-light: #598361;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5126",
  "rgb": {
    "r": 15,
    "g": 81,
    "b": 38
  },
  "hsl": {
    "h": 140.909,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.3838,
    "c": 0.09587,
    "h": 150.2
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#0F5126
secondary
#8B316C
accent
#3CAEEC
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A05
muted
#797C79

Preview Lab

Preview with #0F5126

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

Preview Lab → · Contrast checker → · Palette generator →

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