#0B5212#0B5212

#0B5212 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.116 H 144.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#0B5212
RGBrgb(11, 82, 18)
HSLhsl(126, 76%, 18%)
HSVhsv(126, 87%, 32%)
CMYKcmyk(86.6%, 0%, 78%, 67.8%)
CIE-LABlab(29.79, -34.83, 30.09)
CIE-LCHlch(29.79, 46.02, 139.18°)
OKLaboklab(38.33% -0.0942 0.0685)
OKLCHoklch(38.33% 0.116 144)
XYZxyz(3.2643, 6.1490, 1.5870)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B5212 #520B4B
analogous
#27520B #0B5212 #0B5235
triadic
#0B5212 #120B52 #52120B
tetradic
#0B5212 #0B2752 #520B4B #52350B
square
#0B5212 #0B2752 #520B4B #52350B
split-complementary
#0B5212 #350B52 #520B27
monochromatic
#041B06 #041C06 #0B5212 #12881E #19BE2A

Accessibility & contrast

On white

9.42
#0B5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B5212
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B5212#FFFFFF#000000##FFFFFF
##0B52121.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544908
Deuteranopia (green-blind)
#4C4419
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0b5212;
/* rgb */ color: rgb(11, 82, 18);
/* oklch */ color: oklch(38.3% 0.116 144.0);
Tailwind
colors: {
  custom: {
    50: '#5a8354',
    500: '#0b5212',
    950: '#000000',
  },
}
SCSS
$custom: #0b5212;
$custom-light: #5a8354;
$custom-dark: #000000;
JSON
{
  "hex": "#0b5212",
  "rgb": {
    "r": 11,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 125.915,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38328,
    "c": 0.11647,
    "h": 144
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#0B5212
secondary
#8E2B84
accent
#35E0F3
background
#F5F8F5
surface
#E9EFE8
border
#C5CAC4
text
#040B03
muted
#797C78

Preview Lab

Preview with #0B5212

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

Preview Lab → · Contrast checker → · Palette generator →

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