#0F5A26#0F5A26

#0F5A26 is a dark, moderate green. Relative luminance 0.076; OKLCH L 41.1% C 0.109 H 148.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#0F5A26
RGBrgb(15, 90, 38)
HSLhsl(138, 71%, 21%)
HSVhsv(138, 83%, 35%)
CMYKcmyk(83.3%, 0%, 57.8%, 64.7%)
CIE-LABlab(33.03, -34.55, 23.67)
CIE-LCHlch(33.03, 41.88, 145.58°)
OKLaboklab(41.12% -0.0928 0.0569)
OKLCHoklch(41.12% 0.109 148.5)
XYZxyz(4.2027, 7.5533, 3.0698)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A26 #5A0F43
analogous
#1D5A0F #0F5A26 #0F5A4B
triadic
#0F5A26 #260F5A #5A260F
tetradic
#0F5A26 #0F1D5A #5A0F43 #5A4B0F
square
#0F5A26 #0F1D5A #5A0F43 #5A4B0F
split-complementary
#0F5A26 #4B0F5A #5A0F1D
monochromatic
#041A0B #062610 #0F5A26 #188E3C #20C352

Accessibility & contrast

On white

8.36
#0F5A26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5A26
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5A26#FFFFFF#000000##FFFFFF
##0F5A261.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5121
Deuteranopia (green-blind)
#524B2A
Tritanopia (blue-blind)
#00584E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0f5a26;
/* rgb */ color: rgb(15, 90, 38);
/* oklch */ color: oklch(41.1% 0.109 148.5);
Tailwind
colors: {
  custom: {
    50: '#5c8962',
    500: '#0f5a26',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a26;
$custom-light: #5c8962;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a26",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 38
  },
  "hsl": {
    "h": 138.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41117,
    "c": 0.10887,
    "h": 148.5
  },
  "luminance": 0.07554
}

Semantic roles & 50–950 ramp

primary
#0F5A26
secondary
#943175
accent
#3AB7EE
background
#F5F8F5
surface
#E9F0EA
border
#C5CBC6
text
#050C05
muted
#797D79

Preview Lab

Preview with #0F5A26

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

Preview Lab → · Contrast checker → · Palette generator →

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