#1F902A#1F902A

#1F902A is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.2% C 0.170 H 144.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#1F902A
RGBrgb(31, 144, 42)
HSLhsl(126, 65%, 34%)
HSVhsv(126, 78%, 56%)
CMYKcmyk(78.5%, 0%, 70.8%, 43.5%)
CIE-LABlab(52.29, -51.02, 43.58)
CIE-LCHlch(52.29, 67.10, 139.50°)
OKLaboklab(57.19% -0.138 0.0999)
OKLCHoklch(57.19% 0.17 144.1)
XYZxyz(10.9555, 20.4037, 5.5510)
Luminance0.2041 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F902A #901F85
analogous
#4D901F #1F902A #1F9063
triadic
#1F902A #2A1F90 #902A1F
tetradic
#1F902A #1F4D90 #901F85 #90631F
square
#1F902A #1F4D90 #901F85 #90631F
split-complementary
#1F902A #631F90 #901F4D
monochromatic
#092B0D #145E1B #1F902A #2AC239 #50D95D

Accessibility & contrast

On white

4.13
#1F902A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#1F902A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F902A
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F902A#FFFFFF#000000##000000
##1F902A1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#93821B
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#008C7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f902a;
/* rgb */ color: rgb(31, 144, 42);
/* oklch */ color: oklch(57.2% 0.170 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fb269',
    500: '#1f902a',
    950: '#000000',
  },
}
SCSS
$custom: #1f902a;
$custom-light: #6fb269;
$custom-dark: #000000;
JSON
{
  "hex": "#1f902a",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 42
  },
  "hsl": {
    "h": 125.841,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57193,
    "c": 0.17034,
    "h": 144.1
  },
  "luminance": 0.20405
}

Semantic roles & 50–950 ramp

primary
#1F902A
secondary
#BC4EB2
accent
#40D7E8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F902A

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

Preview Lab → · Contrast checker → · Palette generator →

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