#1F902F#1F902F

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

Color values

HEX#1F902F
RGBrgb(31, 144, 47)
HSLhsl(128, 65%, 34%)
HSVhsv(128, 78%, 56%)
CMYKcmyk(78.5%, 0%, 67.4%, 43.5%)
CIE-LABlab(52.33, -50.50, 41.49)
CIE-LCHlch(52.33, 65.36, 140.60°)
OKLaboklab(57.24% -0.1363 0.0961)
OKLCHoklch(57.24% 0.167 144.8)
XYZxyz(11.0507, 20.4418, 6.0520)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F902F #901F80
analogous
#47901F #1F902F #1F9068
triadic
#1F902F #2F1F90 #902F1F
tetradic
#1F902F #1F4790 #901F80 #90681F
square
#1F902F #1F4790 #901F80 #90681F
split-complementary
#1F902F #681F90 #901F47
monochromatic
#092B0E #145E1F #1F902F #2AC23F #50D964

Accessibility & contrast

On white

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

On black

5.09
#1F902F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F902F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F902F#FFFFFF#000000##000000
##1F902F1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938223
Deuteranopia (green-blind)
#867938
Tritanopia (blue-blind)
#008C7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f902f;
/* rgb */ color: rgb(31, 144, 47);
/* oklch */ color: oklch(57.2% 0.167 144.8);
Tailwind
colors: {
  custom: {
    50: '#6fb26c',
    500: '#1f902f',
    950: '#000000',
  },
}
SCSS
$custom: #1f902f;
$custom-light: #6fb26c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f902f",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 47
  },
  "hsl": {
    "h": 128.496,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57242,
    "c": 0.1668,
    "h": 144.8
  },
  "luminance": 0.20443
}

Semantic roles & 50–950 ramp

primary
#1F902F
secondary
#BC4EAD
accent
#40D0E8
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F902F

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

Preview Lab → · Contrast checker → · Palette generator →

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