#1B7212#1B7212

#1B7212 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.3% C 0.151 H 141.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#1B7212
RGBrgb(27, 114, 18)
HSLhsl(114, 73%, 26%)
HSVhsv(114, 84%, 45%)
CMYKcmyk(76.3%, 0%, 84.2%, 55.3%)
CIE-LABlab(41.71, -43.45, 41.89)
CIE-LCHlch(41.71, 60.35, 136.05°)
OKLaboklab(48.33% -0.1184 0.093)
OKLCHoklch(48.33% 0.151 141.8)
XYZxyz(6.5781, 12.3106, 2.6016)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7212 #691272
analogous
#4B7212 #1B7212 #127239
triadic
#1B7212 #121B72 #72121B
tetradic
#1B7212 #124B72 #691272 #723912
square
#1B7212 #124B72 #691272 #723912
split-complementary
#1B7212 #391272 #72124B
monochromatic
#061A04 #0E3D0A #1B7212 #28A71A #34DC23

Accessibility & contrast

On white

6.07
#1B7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#1B7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7212
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7212#FFFFFF#000000##FFFFFF
##1B72121.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6B601E
Tritanopia (blue-blind)
#006E60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1b7212;
/* rgb */ color: rgb(27, 114, 18);
/* oklch */ color: oklch(48.3% 0.151 141.8);
Tailwind
colors: {
  custom: {
    50: '#689b59',
    500: '#1b7212',
    950: '#000000',
  },
}
SCSS
$custom: #1b7212;
$custom-light: #689b59;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7212",
  "rgb": {
    "r": 27,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 114.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48326,
    "c": 0.15057,
    "h": 141.8
  },
  "luminance": 0.12311
}

Semantic roles & 50–950 ramp

primary
#1B7212
secondary
#9E37A9
accent
#38EFDE
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1B7212

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

Preview Lab → · Contrast checker → · Palette generator →

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