#0F5A27#0F5A27

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

Color values

HEX#0F5A27
RGBrgb(15, 90, 39)
HSLhsl(139, 71%, 21%)
HSVhsv(139, 83%, 35%)
CMYKcmyk(83.3%, 0%, 56.7%, 64.7%)
CIE-LABlab(33.05, -34.38, 23.13)
CIE-LCHlch(33.05, 41.44, 146.07°)
OKLaboklab(41.13% -0.0924 0.0557)
OKLCHoklch(41.13% 0.108 148.9)
XYZxyz(4.2190, 7.5599, 3.1559)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5A27 #5A0F42
analogous
#1C5A0F #0F5A27 #0F5A4C
triadic
#0F5A27 #270F5A #5A270F
tetradic
#0F5A27 #0F1C5A #5A0F42 #5A4C0F
square
#0F5A27 #0F1C5A #5A0F42 #5A4C0F
split-complementary
#0F5A27 #4C0F5A #5A0F1C
monochromatic
#041A0B #062610 #0F5A27 #188E3E #20C354

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F5A27#FFFFFF#000000##FFFFFF
##0F5A271.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)
#5B5123
Deuteranopia (green-blind)
#524B2B
Tritanopia (blue-blind)
#00584E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0f5a27;
/* rgb */ color: rgb(15, 90, 39);
/* oklch */ color: oklch(41.1% 0.108 148.9);
Tailwind
colors: {
  custom: {
    50: '#5c8962',
    500: '#0f5a27',
    950: '#000000',
  },
}
SCSS
$custom: #0f5a27;
$custom-light: #5c8962;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5a27",
  "rgb": {
    "r": 15,
    "g": 90,
    "b": 39
  },
  "hsl": {
    "h": 139.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41133,
    "c": 0.10789,
    "h": 148.9
  },
  "luminance": 0.0756
}

Semantic roles & 50–950 ramp

primary
#0F5A27
secondary
#943174
accent
#3AB4EE
background
#F5F8F5
surface
#E9F0EA
border
#C5CBC6
text
#050C05
muted
#797D79

Preview Lab

Preview with #0F5A27

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

Preview Lab → · Contrast checker → · Palette generator →

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