#1F801C#1F801C

#1F801C is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.5% C 0.160 H 142.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#1F801C
RGBrgb(31, 128, 28)
HSLhsl(118, 64%, 31%)
HSVhsv(118, 78%, 50%)
CMYKcmyk(75.8%, 0%, 78.1%, 49.8%)
CIE-LABlab(46.73, -46.84, 43.35)
CIE-LCHlch(46.73, 63.82, 137.21°)
OKLaboklab(52.54% -0.1273 0.0975)
OKLCHoklch(52.54% 0.16 142.5)
XYZxyz(8.4933, 15.8125, 3.7029)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F801C #7D1C80
analogous
#51801C #1F801C #1C804B
triadic
#1F801C #1C1F80 #801C1F
tetradic
#1F801C #1C5180 #7D1C80 #804B1C
square
#1F801C #1C5180 #7D1C80 #804B1C
split-complementary
#1F801C #4B1C80 #801C51
monochromatic
#071C06 #134E11 #1F801C #2BB227 #45D541

Accessibility & contrast

On white

5.04
#1F801C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#1F801C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F801C
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F801C#FFFFFF#000000##FFFFFF
##1F801C1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837306
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f801c;
/* rgb */ color: rgb(31, 128, 28);
/* oklch */ color: oklch(52.5% 0.160 142.5);
Tailwind
colors: {
  custom: {
    50: '#6ca660',
    500: '#1f801c',
    950: '#000000',
  },
}
SCSS
$custom: #1f801c;
$custom-light: #6ca660;
$custom-dark: #000000;
JSON
{
  "hex": "#1f801c",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 28
  },
  "hsl": {
    "h": 118.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5254,
    "c": 0.16037,
    "h": 142.5
  },
  "luminance": 0.15813
}

Semantic roles & 50–950 ramp

primary
#1F801C
secondary
#B044B3
accent
#41E7E2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F801C

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

Preview Lab → · Contrast checker → · Palette generator →

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