#0F5A2B#0F5A2B

#0F5A2B is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.2% C 0.104 H 150.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#0F5A2B
RGBrgb(15, 90, 43)
HSLhsl(142, 71%, 21%)
HSVhsv(142, 83%, 35%)
CMYKcmyk(83.3%, 0%, 52.2%, 64.7%)
CIE-LABlab(33.11, -33.67, 20.94)
CIE-LCHlch(33.11, 39.65, 148.13°)
OKLaboklab(41.2% -0.0904 0.051)
OKLCHoklch(41.2% 0.104 150.6)
XYZxyz(4.2888, 7.5878, 3.5236)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A2B #5A0F3E
analogous
#185A0F #0F5A2B #0F5A50
triadic
#0F5A2B #2B0F5A #5A2B0F
tetradic
#0F5A2B #0F185A #5A0F3E #5A500F
square
#0F5A2B #0F185A #5A0F3E #5A500F
split-complementary
#0F5A2B #500F5A #5A0F18
monochromatic
#041A0D #062612 #0F5A2B #188E44 #20C35D

Accessibility & contrast

On white

8.34
#0F5A2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#0F5A2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5A2B
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A2B#FFFFFF#000000##FFFFFF
##0F5A2B1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5227
Deuteranopia (green-blind)
#524B2E
Tritanopia (blue-blind)
#00584F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0f5a2b;
/* rgb */ color: rgb(15, 90, 43);
/* oklch */ color: oklch(41.2% 0.104 150.6);
Tailwind
colors: {
  custom: {
    50: '#5c8965',
    500: '#0f5a2b',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a2b;
$custom-light: #5c8965;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a2b",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 43
  },
  "hsl": {
    "h": 142.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41203,
    "c": 0.10385,
    "h": 150.6
  },
  "luminance": 0.07588
}

Semantic roles & 50–950 ramp

primary
#0F5A2B
secondary
#94316F
accent
#3AABEE
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#050C05
muted
#797D7A

Preview Lab

Preview with #0F5A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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