#0F5228#0F5228

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

Color values

HEX#0F5228
RGBrgb(15, 82, 40)
HSLhsl(142, 69%, 19%)
HSVhsv(142, 82%, 32%)
CMYKcmyk(81.7%, 0%, 51.2%, 67.8%)
CIE-LABlab(30.13, -30.97, 18.92)
CIE-LCHlch(30.13, 36.29, 148.58°)
OKLaboklab(38.72% -0.0833 0.0463)
OKLCHoklch(38.72% 0.095 150.9)
XYZxyz(3.5970, 6.2889, 3.0314)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5228 #520F39
analogous
#18520F #0F5228 #0F524A
triadic
#0F5228 #280F52 #52280F
tetradic
#0F5228 #0F1852 #520F39 #524A0F
square
#0F5228 #0F1852 #520F39 #524A0F
split-complementary
#0F5228 #4A0F52 #520F18
monochromatic
#051A0D #061E0F #0F5228 #188641 #22B95A

Accessibility & contrast

On white

9.30
#0F5228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F5228
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5228#FFFFFF#000000##FFFFFF
##0F52281.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524A25
Deuteranopia (green-blind)
#4B452B
Tritanopia (blue-blind)
#005148
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0f5228;
/* rgb */ color: rgb(15, 82, 40);
/* oklch */ color: oklch(38.7% 0.095 150.9);
Tailwind
colors: {
  custom: {
    50: '#5a8362',
    500: '#0f5228',
    950: '#000000',
  },
}
SCSS
$custom: #0f5228;
$custom-light: #5a8362;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5228",
  "rgb": {
    "r": 15,
    "g": 82,
    "b": 40
  },
  "hsl": {
    "h": 142.388,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38723,
    "c": 0.09526,
    "h": 150.9
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#0F5228
secondary
#8C316A
accent
#3CAAEC
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #0F5228

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

Preview Lab → · Contrast checker → · Palette generator →

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