#1F901F#1F901F

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

Color values

HEX#1F901F
RGBrgb(31, 144, 31)
HSLhsl(120, 65%, 34%)
HSVhsv(120, 78%, 56%)
CMYKcmyk(78.5%, 0%, 78.5%, 43.5%)
CIE-LABlab(52.21, -51.96, 47.69)
CIE-LCHlch(52.21, 70.53, 137.46°)
OKLaboklab(57.11% -0.141 0.107)
OKLCHoklch(57.11% 0.177 142.8)
XYZxyz(10.7850, 20.3355, 4.6528)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F901F #901F90
analogous
#58901F #1F901F #1F9058
triadic
#1F901F #1F1F90 #901F1F
tetradic
#1F901F #1F5890 #901F90 #90581F
square
#1F901F #1F5890 #901F90 #90581F
split-complementary
#1F901F #581F90 #901F58
monochromatic
#092B09 #145E14 #1F901F #2AC22A #50D950

Accessibility & contrast

On white

4.14
#1F901F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#1F901F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F901F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F901F#FFFFFF#000000##000000
##1F901F1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938203
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#008C7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f901f;
/* rgb */ color: rgb(31, 144, 31);
/* oklch */ color: oklch(57.1% 0.177 142.8);
Tailwind
colors: {
  custom: {
    50: '#70b264',
    500: '#1f901f',
    950: '#000000',
  },
}
SCSS
$custom: #1f901f;
$custom-light: #70b264;
$custom-dark: #000000;
JSON
{
  "hex": "#1f901f",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57106,
    "c": 0.17704,
    "h": 142.8
  },
  "luminance": 0.20337
}

Semantic roles & 50–950 ramp

primary
#1F901F
secondary
#BC4EBC
accent
#40E8E8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F901F

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

Preview Lab → · Contrast checker → · Palette generator →

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