#1B5012#1B5012

#1B5012 is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.2% C 0.108 H 141.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#1B5012
RGBrgb(27, 80, 18)
HSLhsl(111, 63%, 19%)
HSVhsv(111, 78%, 31%)
CMYKcmyk(66.3%, 0%, 77.5%, 68.6%)
CIE-LABlab(29.45, -30.67, 29.86)
CIE-LCHlch(29.45, 42.80, 135.76°)
OKLaboklab(38.16% -0.0839 0.0679)
OKLCHoklch(38.16% 0.108 141)
XYZxyz(3.4297, 6.0137, 1.5522)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B5012 #471250
analogous
#3A5012 #1B5012 #125028
triadic
#1B5012 #121B50 #50121B
tetradic
#1B5012 #123A50 #471250 #502812
square
#1B5012 #123A50 #471250 #502812
split-complementary
#1B5012 #281250 #50123A
monochromatic
#081906 #0A1E07 #1B5012 #2C821D #3DB428

Accessibility & contrast

On white

9.53
#1B5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1B5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B5012
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B5012#FFFFFF#000000##FFFFFF
##1B50121.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4C4418
Tritanopia (blue-blind)
#134D44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b5012;
/* rgb */ color: rgb(27, 80, 18);
/* oklch */ color: oklch(38.2% 0.108 141.0);
Tailwind
colors: {
  custom: {
    50: '#5f8254',
    500: '#1b5012',
    950: '#000000',
  },
}
SCSS
$custom: #1b5012;
$custom-light: #5f8254;
$custom-dark: #000000;
JSON
{
  "hex": "#1b5012",
  "rgb": {
    "r": 27,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 111.29,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38163,
    "c": 0.10793,
    "h": 141
  },
  "luminance": 0.06014
}

Semantic roles & 50–950 ramp

primary
#1B5012
secondary
#7D3589
accent
#41E6CE
background
#F5F8F5
surface
#EAEFE8
border
#C6CAC4
text
#050A03
muted
#797C78

Preview Lab

Preview with #1B5012

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

Preview Lab → · Contrast checker → · Palette generator →

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