#1B7E12#1B7E12

#1B7E12 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.8% C 0.164 H 142.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#1B7E12
RGBrgb(27, 126, 18)
HSLhsl(115, 75%, 28%)
HSVhsv(115, 86%, 49%)
CMYKcmyk(78.6%, 0%, 85.7%, 50.6%)
CIE-LABlab(45.90, -47.51, 45.77)
CIE-LCHlch(45.90, 65.97, 136.06°)
OKLaboklab(51.82% -0.1293 0.1012)
OKLCHoklch(51.82% 0.164 142)
XYZxyz(8.0216, 15.1975, 3.0828)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7E12 #75127E
analogous
#517E12 #1B7E12 #127E3F
triadic
#1B7E12 #121B7E #7E121B
tetradic
#1B7E12 #12517E #75127E #7E3F12
square
#1B7E12 #12517E #75127E #7E3F12
split-complementary
#1B7E12 #3F127E #7E1251
monochromatic
#061B04 #10480A #1B7E12 #26B41A #39E12A

Accessibility & contrast

On white

5.20
#1B7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#1B7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7E12
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7E12#FFFFFF#000000##FFFFFF
##1B7E121.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A20
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1b7e12;
/* rgb */ color: rgb(27, 126, 18);
/* oklch */ color: oklch(51.8% 0.164 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba45b',
    500: '#1b7e12',
    950: '#000000',
  },
}
SCSS
$custom: #1b7e12;
$custom-light: #6ba45b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7e12",
  "rgb": {
    "r": 27,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 115,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51815,
    "c": 0.16422,
    "h": 142
  },
  "luminance": 0.15198
}

Semantic roles & 50–950 ramp

primary
#1B7E12
secondary
#A938B4
accent
#36F2E2
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1B7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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