#1B5812#1B5812

#1B5812 is a dark, moderate green. Relative luminance 0.073; OKLCH L 40.6% C 0.119 H 141.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#1B5812
RGBrgb(27, 88, 18)
HSLhsl(112, 66%, 21%)
HSVhsv(112, 80%, 35%)
CMYKcmyk(69.3%, 0%, 79.5%, 65.5%)
CIE-LABlab(32.38, -33.89, 32.86)
CIE-LCHlch(32.38, 47.21, 135.89°)
OKLaboklab(40.59% -0.0926 0.0742)
OKLCHoklch(40.59% 0.119 141.3)
XYZxyz(4.0507, 7.2557, 1.7592)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B5812 #4F1258
analogous
#3E5812 #1B5812 #12582C
triadic
#1B5812 #121B58 #58121B
tetradic
#1B5812 #123E58 #4F1258 #582C12
square
#1B5812 #123E58 #4F1258 #582C12
split-complementary
#1B5812 #2C1258 #58123E
monochromatic
#081905 #0B2508 #1B5812 #2B8B1C #3ABE27

Accessibility & contrast

On white

8.57
#1B5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1B5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B5812
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B5812#FFFFFF#000000##FFFFFF
##1B58121.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F05
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#10554A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1b5812;
/* rgb */ color: rgb(27, 88, 18);
/* oklch */ color: oklch(40.6% 0.119 141.3);
Tailwind
colors: {
  custom: {
    50: '#618855',
    500: '#1b5812',
    950: '#000000',
  },
}
SCSS
$custom: #1b5812;
$custom-light: #618855;
$custom-dark: #000000;
JSON
{
  "hex": "#1b5812",
  "rgb": {
    "r": 27,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 112.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40591,
    "c": 0.11865,
    "h": 141.3
  },
  "luminance": 0.07256
}

Semantic roles & 50–950 ramp

primary
#1B5812
secondary
#853591
accent
#3FE9D3
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#050B03
muted
#7A7C78

Preview Lab

Preview with #1B5812

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

Preview Lab → · Contrast checker → · Palette generator →

#1B5812 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva