#0F5227#0F5227

#0F5227 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.7% C 0.096 H 150.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#0F5227
RGBrgb(15, 82, 39)
HSLhsl(141, 69%, 19%)
HSVhsv(141, 82%, 32%)
CMYKcmyk(81.7%, 0%, 52.4%, 67.8%)
CIE-LABlab(30.11, -31.16, 19.48)
CIE-LCHlch(30.11, 36.75, 147.98°)
OKLaboklab(38.7% -0.0838 0.0475)
OKLCHoklch(38.7% 0.096 150.4)
XYZxyz(3.5802, 6.2822, 2.9430)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5227 #520F3A
analogous
#19520F #0F5227 #0F5249
triadic
#0F5227 #270F52 #52270F
tetradic
#0F5227 #0F1952 #520F3A #52490F
square
#0F5227 #0F1952 #520F3A #52490F
split-complementary
#0F5227 #490F52 #520F19
monochromatic
#051A0C #061E0E #0F5227 #188640 #22B958

Accessibility & contrast

On white

9.31
#0F5227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#0F5227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5227
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5227#FFFFFF#000000##FFFFFF
##0F52271.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524A24
Deuteranopia (green-blind)
#4B452A
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0f5227;
/* rgb */ color: rgb(15, 82, 39);
/* oklch */ color: oklch(38.7% 0.096 150.4);
Tailwind
colors: {
  custom: {
    50: '#5a8362',
    500: '#0f5227',
    950: '#000000',
  },
}
SCSS
$custom: #0f5227;
$custom-light: #5a8362;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5227",
  "rgb": {
    "r": 15,
    "g": 82,
    "b": 39
  },
  "hsl": {
    "h": 141.493,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.09631,
    "h": 150.4
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#0F5227
secondary
#8C316B
accent
#3CADEC
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #0F5227

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

Preview Lab → · Contrast checker → · Palette generator →

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