#1B831F#1B831F

#1B831F is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.3% C 0.163 H 143.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#1B831F
RGBrgb(27, 131, 31)
HSLhsl(122, 66%, 31%)
HSVhsv(122, 79%, 51%)
CMYKcmyk(79.4%, 0%, 76.3%, 48.6%)
CIE-LABlab(47.71, -48.27, 43.19)
CIE-LCHlch(47.71, 64.77, 138.18°)
OKLaboklab(53.34% -0.1308 0.0977)
OKLCHoklch(53.34% 0.163 143.3)
XYZxyz(8.8151, 16.5635, 4.0286)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B831F #831B7F
analogous
#4B831B #1B831F #1B8353
triadic
#1B831F #1F1B83 #831F1B
tetradic
#1B831F #1B4B83 #831B7F #83531B
square
#1B831F #1B4B83 #831B7F #83531B
split-complementary
#1B831F #531B83 #831B4B
monochromatic
#061E07 #115013 #1B831F #25B62B #41D846

Accessibility & contrast

On white

4.87
#1B831F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#1B831F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1B831F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B831F#FFFFFF#000000##FFFFFF
##1B831F1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760B
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#007F70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1b831f;
/* rgb */ color: rgb(27, 131, 31);
/* oklch */ color: oklch(53.3% 0.163 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ba862',
    500: '#1b831f',
    950: '#000000',
  },
}
SCSS
$custom: #1b831f;
$custom-light: #6ba862;
$custom-dark: #000000;
JSON
{
  "hex": "#1b831f",
  "rgb": {
    "r": 27,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 122.308,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53337,
    "c": 0.16325,
    "h": 143.3
  },
  "luminance": 0.16565
}

Semantic roles & 50–950 ramp

primary
#1B831F
secondary
#B643B2
accent
#3FE2E9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1B831F

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

Preview Lab → · Contrast checker → · Palette generator →

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