#1B7A42#1B7A42

#1B7A42 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.122 H 152.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#1B7A42
RGBrgb(27, 122, 66)
HSLhsl(145, 64%, 29%)
HSVhsv(145, 78%, 48%)
CMYKcmyk(77.9%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.00, -40.28, 23.13)
CIE-LCHlch(45.00, 46.45, 150.14°)
OKLaboklab(51.23% -0.1084 0.057)
OKLCHoklch(51.23% 0.122 152.3)
XYZxyz(8.3942, 14.5444, 7.5182)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7A42 #7A1B53
analogous
#237A1B #1B7A42 #1B7A72
triadic
#1B7A42 #421B7A #7A421B
tetradic
#1B7A42 #1B237A #7A1B53 #7A721B
square
#1B7A42 #1B237A #7A1B53 #7A721B
split-complementary
#1B7A42 #721B7A #7A1B23
monochromatic
#06190E #104827 #1B7A42 #26AC5D #3CD47A

Accessibility & contrast

On white

5.37
#1B7A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1B7A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7A42
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7A42#FFFFFF#000000##FFFFFF
##1B7A421.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3E
Deuteranopia (green-blind)
#6F6746
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1b7a42;
/* rgb */ color: rgb(27, 122, 66);
/* oklch */ color: oklch(51.2% 0.122 152.3);
Tailwind
colors: {
  custom: {
    50: '#67a177',
    500: '#1b7a42',
    950: '#000000',
  },
}
SCSS
$custom: #1b7a42;
$custom-light: #67a177;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7a42",
  "rgb": {
    "r": 27,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 144.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51225,
    "c": 0.12245,
    "h": 152.3
  },
  "luminance": 0.14545
}

Semantic roles & 50–950 ramp

primary
#1B7A42
secondary
#AE4382
accent
#41A3E7
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1B7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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