#0F5D31#0F5D31

#0F5D31 is a dark, moderate green. Relative luminance 0.082; OKLCH L 42.2% C 0.102 H 152.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#0F5D31
RGBrgb(15, 93, 49)
HSLhsl(146, 72%, 21%)
HSVhsv(146, 84%, 36%)
CMYKcmyk(83.9%, 0%, 47.3%, 63.5%)
CIE-LABlab(34.30, -33.72, 18.97)
CIE-LCHlch(34.30, 38.69, 150.65°)
OKLaboklab(42.22% -0.0907 0.0468)
OKLCHoklch(42.22% 0.102 152.7)
XYZxyz(4.6653, 8.1514, 4.2326)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5D31 #5D0F3B
analogous
#145D0F #0F5D31 #0F5D58
triadic
#0F5D31 #310F5D #5D310F
tetradic
#0F5D31 #0F145D #5D0F3B #5D580F
square
#0F5D31 #0F145D #5D0F3B #5D580F
split-complementary
#0F5D31 #580F5D #5D0F14
monochromatic
#041A0E #062815 #0F5D31 #17924D #20C669

Accessibility & contrast

On white

7.98
#0F5D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#0F5D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5D31
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5D31#FFFFFF#000000##FFFFFF
##0F5D311.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D542E
Deuteranopia (green-blind)
#544E34
Tritanopia (blue-blind)
#005C52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #0f5d31;
/* rgb */ color: rgb(15, 93, 49);
/* oklch */ color: oklch(42.2% 0.102 152.7);
Tailwind
colors: {
  custom: {
    50: '#5c8c69',
    500: '#0f5d31',
    950: '#000000',
  },
}
SCSS
$custom: #0f5d31;
$custom-light: #5c8c69;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5d31",
  "rgb": {
    "r": 15,
    "g": 93,
    "b": 49
  },
  "hsl": {
    "h": 146.154,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42218,
    "c": 0.10201,
    "h": 152.7
  },
  "luminance": 0.08152
}

Semantic roles & 50–950 ramp

primary
#0F5D31
secondary
#96316A
accent
#39A0EF
background
#F5F8F6
surface
#E9F0EB
border
#C5CBC6
text
#050C06
muted
#797D7A

Preview Lab

Preview with #0F5D31

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

Preview Lab → · Contrast checker → · Palette generator →

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