#1F902E#1F902E

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

Color values

HEX#1F902E
RGBrgb(31, 144, 46)
HSLhsl(128, 65%, 34%)
HSVhsv(128, 78%, 56%)
CMYKcmyk(78.5%, 0%, 68.1%, 43.5%)
CIE-LABlab(52.32, -50.61, 41.92)
CIE-LCHlch(52.32, 65.72, 140.37°)
OKLaboklab(57.23% -0.1367 0.0969)
OKLCHoklch(57.23% 0.168 144.7)
XYZxyz(11.0307, 20.4338, 5.9470)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F902E #901F81
analogous
#48901F #1F902E #1F9067
triadic
#1F902E #2E1F90 #902E1F
tetradic
#1F902E #1F4890 #901F81 #90671F
square
#1F902E #1F4890 #901F81 #90671F
split-complementary
#1F902E #671F90 #901F48
monochromatic
#092B0E #145E1E #1F902E #2AC23E #50D962

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F902E#FFFFFF#000000##000000
##1F902E1.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)
#938221
Deuteranopia (green-blind)
#867937
Tritanopia (blue-blind)
#008C7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f902e;
/* rgb */ color: rgb(31, 144, 46);
/* oklch */ color: oklch(57.2% 0.168 144.7);
Tailwind
colors: {
  custom: {
    50: '#6fb26c',
    500: '#1f902e',
    950: '#000000',
  },
}
SCSS
$custom: #1f902e;
$custom-light: #6fb26c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f902e",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 46
  },
  "hsl": {
    "h": 127.965,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57232,
    "c": 0.16752,
    "h": 144.7
  },
  "luminance": 0.20435
}

Semantic roles & 50–950 ramp

primary
#1F902E
secondary
#BC4EAE
accent
#40D1E8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F902E

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

Preview Lab → · Contrast checker → · Palette generator →

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