#0F5A22#0F5A22

#0F5A22 is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.1% C 0.113 H 147.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#0F5A22
RGBrgb(15, 90, 34)
HSLhsl(135, 71%, 21%)
HSVhsv(135, 83%, 35%)
CMYKcmyk(83.3%, 0%, 62.2%, 64.7%)
CIE-LABlab(32.98, -35.18, 25.79)
CIE-LCHlch(32.98, 43.62, 143.76°)
OKLaboklab(41.06% -0.0946 0.0612)
OKLCHoklch(41.06% 0.113 147.1)
XYZxyz(4.1416, 7.5289, 2.7480)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A22 #5A0F47
analogous
#215A0F #0F5A22 #0F5A47
triadic
#0F5A22 #220F5A #5A220F
tetradic
#0F5A22 #0F215A #5A0F47 #5A470F
square
#0F5A22 #0F215A #5A0F47 #5A470F
split-complementary
#0F5A22 #470F5A #5A0F21
monochromatic
#041A0A #06260E #0F5A22 #188E36 #20C34A

Accessibility & contrast

On white

8.38
#0F5A22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#0F5A22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5A22
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A22#FFFFFF#000000##FFFFFF
##0F5A221.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B511C
Deuteranopia (green-blind)
#534B26
Tritanopia (blue-blind)
#00584E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0f5a22;
/* rgb */ color: rgb(15, 90, 34);
/* oklch */ color: oklch(41.1% 0.113 147.1);
Tailwind
colors: {
  custom: {
    50: '#5c895f',
    500: '#0f5a22',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a22;
$custom-light: #5c895f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a22",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 34
  },
  "hsl": {
    "h": 135.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41056,
    "c": 0.1127,
    "h": 147.1
  },
  "luminance": 0.07529
}

Semantic roles & 50–950 ramp

primary
#0F5A22
secondary
#94317B
accent
#3AC0EE
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0F5A22

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

Preview Lab → · Contrast checker → · Palette generator →

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