#1F901C#1F901C

#1F901C 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#1F901C
RGBrgb(31, 144, 28)
HSLhsl(118, 67%, 34%)
HSVhsv(118, 81%, 56%)
CMYKcmyk(78.5%, 0%, 80.6%, 43.5%)
CIE-LABlab(52.20, -52.17, 48.67)
CIE-LCHlch(52.20, 71.35, 136.99°)
OKLaboklab(57.09% -0.1417 0.1086)
OKLCHoklch(57.09% 0.179 142.5)
XYZxyz(10.7473, 20.3204, 4.4542)
Luminance0.2032 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F901C #8D1C90
analogous
#59901C #1F901C #1C9053
triadic
#1F901C #1C1F90 #901C1F
tetradic
#1F901C #1C5990 #8D1C90 #90531C
square
#1F901C #1C5990 #8D1C90 #90531C
split-complementary
#1F901C #531C90 #901C59
monochromatic
#092A08 #145D12 #1F901C #2AC326 #4EDC4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F901C#FFFFFF#000000##000000
##1F901C1.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)
#87792A
Tritanopia (blue-blind)
#008C7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f901c;
/* rgb */ color: rgb(31, 144, 28);
/* oklch */ color: oklch(57.1% 0.179 142.5);
Tailwind
colors: {
  custom: {
    50: '#70b262',
    500: '#1f901c',
    950: '#000000',
  },
}
SCSS
$custom: #1f901c;
$custom-light: #70b262;
$custom-dark: #000000;
JSON
{
  "hex": "#1f901c",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 28
  },
  "hsl": {
    "h": 118.448,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57086,
    "c": 0.17858,
    "h": 142.5
  },
  "luminance": 0.20322
}

Semantic roles & 50–950 ramp

primary
#1F901C
secondary
#BB4ABE
accent
#3DEAE6
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F901C

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

Preview Lab → · Contrast checker → · Palette generator →

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