#0F5127#0F5127

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

Color values

HEX#0F5127
RGBrgb(15, 81, 39)
HSLhsl(142, 69%, 19%)
HSVhsv(142, 81%, 32%)
CMYKcmyk(81.5%, 0%, 51.9%, 68.2%)
CIE-LABlab(29.74, -30.74, 19.02)
CIE-LCHlch(29.74, 36.15, 148.26°)
OKLaboklab(38.4% -0.0827 0.0465)
OKLCHoklch(38.4% 0.095 150.7)
XYZxyz(3.5053, 6.1325, 2.9180)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5127 #510F39
analogous
#18510F #0F5127 #0F5148
triadic
#0F5127 #270F51 #51270F
tetradic
#0F5127 #0F1851 #510F39 #51480F
square
#0F5127 #0F1851 #510F39 #51480F
split-complementary
#0F5127 #480F51 #510F18
monochromatic
#051A0C #051D0E #0F5127 #198540 #22B859

Accessibility & contrast

On white

9.43
#0F5127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5127
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5127#FFFFFF#000000##FFFFFF
##0F51271.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514924
Deuteranopia (green-blind)
#4A442A
Tritanopia (blue-blind)
#005047
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f5127;
/* rgb */ color: rgb(15, 81, 39);
/* oklch */ color: oklch(38.4% 0.095 150.7);
Tailwind
colors: {
  custom: {
    50: '#598262',
    500: '#0f5127',
    950: '#000000',
  },
}
SCSS
$custom: #0f5127;
$custom-light: #598262;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5127",
  "rgb": {
    "r": 15,
    "g": 81,
    "b": 39
  },
  "hsl": {
    "h": 141.818,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38398,
    "c": 0.09483,
    "h": 150.7
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#0F5127
secondary
#8B316A
accent
#3CACEC
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0F5127

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

Preview Lab → · Contrast checker → · Palette generator →

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