#0B5218#0B5218

#0B5218 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.4% C 0.112 H 145.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#0B5218
RGBrgb(11, 82, 24)
HSLhsl(131, 76%, 18%)
HSVhsv(131, 87%, 32%)
CMYKcmyk(86.6%, 0%, 70.7%, 67.8%)
CIE-LABlab(29.84, -34.15, 27.34)
CIE-LCHlch(29.84, 43.74, 141.32°)
OKLaboklab(38.39% -0.092 0.0635)
OKLCHoklch(38.39% 0.112 145.4)
XYZxyz(3.3199, 6.1713, 1.8802)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B5218 #520B45
analogous
#21520B #0B5218 #0B523B
triadic
#0B5218 #180B52 #52180B
tetradic
#0B5218 #0B2152 #520B45 #523B0B
square
#0B5218 #0B2152 #520B45 #523B0B
split-complementary
#0B5218 #3B0B52 #520B21
monochromatic
#041B08 #041C08 #0B5218 #128828 #19BE38

Accessibility & contrast

On white

9.40
#0B5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#0B5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B5218
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B5218#FFFFFF#000000##FFFFFF
##0B52181.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A11
Deuteranopia (green-blind)
#4C441D
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0b5218;
/* rgb */ color: rgb(11, 82, 24);
/* oklch */ color: oklch(38.4% 0.112 145.4);
Tailwind
colors: {
  custom: {
    50: '#598358',
    500: '#0b5218',
    950: '#000000',
  },
}
SCSS
$custom: #0b5218;
$custom-light: #598358;
$custom-dark: #000000;
JSON
{
  "hex": "#0b5218",
  "rgb": {
    "r": 11,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 130.986,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38392,
    "c": 0.11184,
    "h": 145.4
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#0B5218
secondary
#8E2B7C
accent
#35D0F3
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0B5218

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

Preview Lab → · Contrast checker → · Palette generator →

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