#0F5A2C#0F5A2C

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

Color values

HEX#0F5A2C
RGBrgb(15, 90, 44)
HSLhsl(143, 71%, 21%)
HSVhsv(143, 83%, 35%)
CMYKcmyk(83.3%, 0%, 51.1%, 64.7%)
CIE-LABlab(33.13, -33.48, 20.38)
CIE-LCHlch(33.13, 39.20, 148.67°)
OKLaboklab(41.22% -0.09 0.0498)
OKLCHoklch(41.22% 0.103 151)
XYZxyz(4.3074, 7.5952, 3.6214)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A2C #5A0F3D
analogous
#175A0F #0F5A2C #0F5A51
triadic
#0F5A2C #2C0F5A #5A2C0F
tetradic
#0F5A2C #0F175A #5A0F3D #5A510F
square
#0F5A2C #0F175A #5A0F3D #5A510F
split-complementary
#0F5A2C #510F5A #5A0F17
monochromatic
#041A0D #062612 #0F5A2C #188E46 #20C35F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F5A2C#FFFFFF#000000##FFFFFF
##0F5A2C1.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)
#5A5228
Deuteranopia (green-blind)
#524B2F
Tritanopia (blue-blind)
#00584F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0f5a2c;
/* rgb */ color: rgb(15, 90, 44);
/* oklch */ color: oklch(41.2% 0.103 151.0);
Tailwind
colors: {
  custom: {
    50: '#5c8966',
    500: '#0f5a2c',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a2c;
$custom-light: #5c8966;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a2c",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 44
  },
  "hsl": {
    "h": 143.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41222,
    "c": 0.10283,
    "h": 151
  },
  "luminance": 0.07596
}

Semantic roles & 50–950 ramp

primary
#0F5A2C
secondary
#94316E
accent
#3AA8EE
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #0F5A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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