#1F851A#1F851A

#1F851A is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.167 H 142.3°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#1F851A
RGBrgb(31, 133, 26)
HSLhsl(117, 67%, 31%)
HSVhsv(117, 80%, 52%)
CMYKcmyk(76.7%, 0%, 80.5%, 47.8%)
CIE-LABlab(48.44, -48.68, 45.72)
CIE-LCHlch(48.44, 66.78, 136.80°)
OKLaboklab(53.96% -0.1324 0.1022)
OKLCHoklch(53.96% 0.167 142.3)
XYZxyz(9.1385, 17.1399, 3.8038)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F851A #801A85
analogous
#54851A #1F851A #1A854A
triadic
#1F851A #1A1F85 #851A1F
tetradic
#1F851A #1A5485 #801A85 #854A1A
square
#1F851A #1A5485 #801A85 #854A1A
split-complementary
#1F851A #4A1A85 #851A54
monochromatic
#071F06 #135210 #1F851A #2BB824 #47DA40

Accessibility & contrast

On white

4.74
#1F851A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#1F851A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F851A
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F851A#FFFFFF#000000##FFFFFF
##1F851A1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f851a;
/* rgb */ color: rgb(31, 133, 26);
/* oklch */ color: oklch(54.0% 0.167 142.3);
Tailwind
colors: {
  custom: {
    50: '#6daa60',
    500: '#1f851a',
    950: '#000000',
  },
}
SCSS
$custom: #1f851a;
$custom-light: #6daa60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f851a",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 117.196,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53955,
    "c": 0.16722,
    "h": 142.3
  },
  "luminance": 0.17141
}

Semantic roles & 50–950 ramp

primary
#1F851A
secondary
#B342B8
accent
#3EEAE2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F851A

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

Preview Lab → · Contrast checker → · Palette generator →

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