#1B7D1F#1B7D1F

#1B7D1F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.6% C 0.156 H 143.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#1B7D1F
RGBrgb(27, 125, 31)
HSLhsl(122, 64%, 30%)
HSVhsv(122, 78%, 49%)
CMYKcmyk(78.4%, 0%, 75.2%, 51%)
CIE-LABlab(45.63, -46.24, 41.09)
CIE-LCHlch(45.63, 61.85, 138.37°)
OKLaboklab(51.61% -0.1253 0.0933)
OKLCHoklch(51.61% 0.156 143.3)
XYZxyz(8.0324, 14.9982, 3.7677)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B7D1F #7D1B79
analogous
#487D1B #1B7D1F #1B7D50
triadic
#1B7D1F #1F1B7D #7D1F1B
tetradic
#1B7D1F #1B487D #7D1B79 #7D501B
square
#1B7D1F #1B487D #7D1B79 #7D501B
split-complementary
#1B7D1F #501B7D #7D1B48
monochromatic
#051906 #104B13 #1B7D1F #26AF2B #3DD543

Accessibility & contrast

On white

5.25
#1B7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#1B7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B7D1F
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B7D1F#FFFFFF#000000##FFFFFF
##1B7D1F1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#756929
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1b7d1f;
/* rgb */ color: rgb(27, 125, 31);
/* oklch */ color: oklch(51.6% 0.156 143.3);
Tailwind
colors: {
  custom: {
    50: '#6aa461',
    500: '#1b7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #1b7d1f;
$custom-light: #6aa461;
$custom-dark: #000000;
JSON
{
  "hex": "#1b7d1f",
  "rgb": {
    "r": 27,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 122.449,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51614,
    "c": 0.15621,
    "h": 143.3
  },
  "luminance": 0.14999
}

Semantic roles & 50–950 ramp

primary
#1B7D1F
secondary
#B143AC
accent
#40E1E7
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1B7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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