#0F5F28#0F5F28

#0F5F28 is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.7% C 0.114 H 148.5°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#0F5F28
RGBrgb(15, 95, 40)
HSLhsl(139, 73%, 22%)
HSVhsv(139, 84%, 37%)
CMYKcmyk(84.2%, 0%, 57.9%, 62.7%)
CIE-LABlab(34.88, -36.16, 24.81)
CIE-LCHlch(34.88, 43.85, 145.54°)
OKLaboklab(42.66% -0.0971 0.0595)
OKLCHoklch(42.66% 0.114 148.5)
XYZxyz(4.6718, 8.4386, 3.3897)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5F28 #5F0F46
analogous
#1E5F0F #0F5F28 #0F5F50
triadic
#0F5F28 #280F5F #5F280F
tetradic
#0F5F28 #0F1E5F #5F0F46 #5F500F
square
#0F5F28 #0F1E5F #5F0F46 #5F500F
split-complementary
#0F5F28 #500F5F #5F0F1E
monochromatic
#041A0B #072A12 #0F5F28 #17943E #20C955

Accessibility & contrast

On white

7.81
#0F5F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5F28
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5F28#FFFFFF#000000##FFFFFF
##0F5F281.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605623
Deuteranopia (green-blind)
#57502C
Tritanopia (blue-blind)
#005D53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0f5f28;
/* rgb */ color: rgb(15, 95, 40);
/* oklch */ color: oklch(42.7% 0.114 148.5);
Tailwind
colors: {
  custom: {
    50: '#5d8d63',
    500: '#0f5f28',
    950: '#000000',
  },
}
SCSS
$custom: #0f5f28;
$custom-light: #5d8d63;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5f28",
  "rgb": {
    "r": 15,
    "g": 95,
    "b": 40
  },
  "hsl": {
    "h": 138.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42656,
    "c": 0.11391,
    "h": 148.5
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#0F5F28
secondary
#983278
accent
#38B6EF
background
#F5F8F6
surface
#EAF0EB
border
#C6CBC6
text
#050C05
muted
#797D7A

Preview Lab

Preview with #0F5F28

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

Preview Lab → · Contrast checker → · Palette generator →

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