#0F5226#0F5226

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

Color values

HEX#0F5226
RGBrgb(15, 82, 38)
HSLhsl(141, 69%, 19%)
HSVhsv(141, 82%, 32%)
CMYKcmyk(81.7%, 0%, 53.7%, 67.8%)
CIE-LABlab(30.10, -31.34, 20.05)
CIE-LCHlch(30.10, 37.21, 147.40°)
OKLaboklab(38.69% -0.0843 0.0488)
OKLCHoklch(38.69% 0.097 149.9)
XYZxyz(3.5639, 6.2757, 2.8568)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5226 #520F3B
analogous
#1A520F #0F5226 #0F5248
triadic
#0F5226 #260F52 #52260F
tetradic
#0F5226 #0F1A52 #520F3B #52480F
square
#0F5226 #0F1A52 #520F3B #52480F
split-complementary
#0F5226 #480F52 #520F1A
monochromatic
#051A0C #061E0E #0F5226 #18863E #22B956

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F5226#FFFFFF#000000##FFFFFF
##0F52261.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)
#534A22
Deuteranopia (green-blind)
#4B4529
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0f5226;
/* rgb */ color: rgb(15, 82, 38);
/* oklch */ color: oklch(38.7% 0.097 149.9);
Tailwind
colors: {
  custom: {
    50: '#5a8361',
    500: '#0f5226',
    950: '#000000',
  },
}
SCSS
$custom: #0f5226;
$custom-light: #5a8361;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5226",
  "rgb": {
    "r": 15,
    "g": 82,
    "b": 38
  },
  "hsl": {
    "h": 140.597,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38685,
    "c": 0.09735,
    "h": 149.9
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#0F5226
secondary
#8C316D
accent
#3CAFEC
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #0F5226

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

Preview Lab → · Contrast checker → · Palette generator →

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