#1F901B#1F901B

#1F901B is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.1% C 0.179 H 142.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#1F901B
RGBrgb(31, 144, 27)
HSLhsl(118, 68%, 34%)
HSVhsv(118, 81%, 56%)
CMYKcmyk(78.5%, 0%, 81.3%, 43.5%)
CIE-LABlab(52.19, -52.24, 48.98)
CIE-LCHlch(52.19, 71.61, 136.84°)
OKLaboklab(57.08% -0.142 0.1091)
OKLCHoklch(57.08% 0.179 142.5)
XYZxyz(10.7355, 20.3157, 4.3922)
Luminance0.2032 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F901B #8C1B90
analogous
#59901B #1F901B #1B9051
triadic
#1F901B #1B1F90 #901B1F
tetradic
#1F901B #1B5990 #8C1B90 #90511B
square
#1F901B #1B5990 #8C1B90 #90511B
split-complementary
#1F901B #511B90 #901B59
monochromatic
#092908 #145C11 #1F901B #2AC425 #4EDD49

Accessibility & contrast

On white

4.15
#1F901B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#1F901B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F901B
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F901B#FFFFFF#000000##000000
##1F901B1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f901b;
/* rgb */ color: rgb(31, 144, 27);
/* oklch */ color: oklch(57.1% 0.179 142.5);
Tailwind
colors: {
  custom: {
    50: '#70b262',
    500: '#1f901b',
    950: '#000000',
  },
}
SCSS
$custom: #1f901b;
$custom-light: #70b262;
$custom-dark: #000000;
JSON
{
  "hex": "#1f901b",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 27
  },
  "hsl": {
    "h": 117.949,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5708,
    "c": 0.17907,
    "h": 142.5
  },
  "luminance": 0.20317
}

Semantic roles & 50–950 ramp

primary
#1F901B
secondary
#BB48BF
accent
#3DEBE5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #1F901B

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

Preview Lab → · Contrast checker → · Palette generator →

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