#0F5F27#0F5F27

#0F5F27 is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.6% C 0.115 H 148.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#0F5F27
RGBrgb(15, 95, 39)
HSLhsl(138, 73%, 22%)
HSVhsv(138, 84%, 37%)
CMYKcmyk(84.2%, 0%, 58.9%, 62.7%)
CIE-LABlab(34.87, -36.32, 25.34)
CIE-LCHlch(34.87, 44.28, 145.10°)
OKLaboklab(42.64% -0.0976 0.0606)
OKLCHoklch(42.64% 0.115 148.2)
XYZxyz(4.6550, 8.4319, 3.3012)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5F27 #5F0F47
analogous
#1F5F0F #0F5F27 #0F5F4F
triadic
#0F5F27 #270F5F #5F270F
tetradic
#0F5F27 #0F1F5F #5F0F47 #5F4F0F
square
#0F5F27 #0F1F5F #5F0F47 #5F4F0F
split-complementary
#0F5F27 #4F0F5F #5F0F1F
monochromatic
#041A0B #072A11 #0F5F27 #17943D #20C952

Accessibility & contrast

On white

7.82
#0F5F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#0F5F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5F27
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5F27#FFFFFF#000000##FFFFFF
##0F5F271.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605622
Deuteranopia (green-blind)
#57502B
Tritanopia (blue-blind)
#005D52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0f5f27;
/* rgb */ color: rgb(15, 95, 39);
/* oklch */ color: oklch(42.6% 0.115 148.2);
Tailwind
colors: {
  custom: {
    50: '#5d8d63',
    500: '#0f5f27',
    950: '#000000',
  },
}
SCSS
$custom: #0f5f27;
$custom-light: #5d8d63;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5f27",
  "rgb": {
    "r": 15,
    "g": 95,
    "b": 39
  },
  "hsl": {
    "h": 138,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.11487,
    "h": 148.2
  },
  "luminance": 0.08432
}

Semantic roles & 50–950 ramp

primary
#0F5F27
secondary
#983279
accent
#38B9EF
background
#F5F8F5
surface
#EAF0EA
border
#C6CBC6
text
#050C05
muted
#797D79

Preview Lab

Preview with #0F5F27

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

Preview Lab → · Contrast checker → · Palette generator →

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