#1F804F#1F804F

#1F804F is a mid, moderate green. Relative luminance 0.163; OKLCH L 53.3% C 0.117 H 156.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#1F804F
RGBrgb(31, 128, 79)
HSLhsl(150, 61%, 31%)
HSVhsv(150, 76%, 50%)
CMYKcmyk(75.8%, 0%, 38.3%, 49.8%)
CIE-LABlab(47.36, -39.47, 18.91)
CIE-LCHlch(47.36, 43.77, 154.40°)
OKLaboklab(53.26% -0.1067 0.0474)
OKLCHoklch(53.26% 0.117 156)
XYZxyz(9.6946, 16.2930, 10.0296)
Luminance0.1629 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F804F #801F50
analogous
#1F801F #1F804F #1F807F
triadic
#1F804F #4F1F80 #804F1F
tetradic
#1F804F #1F1F80 #801F50 #807F1F
square
#1F804F #1F1F80 #801F50 #807F1F
split-complementary
#1F804F #7F1F80 #801F1F
monochromatic
#071D12 #134F31 #1F804F #2BB16D #47D28C

Accessibility & contrast

On white

4.93
#1F804F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#1F804F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F804F
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F804F#FFFFFF#000000##FFFFFF
##1F804F1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F754C
Deuteranopia (green-blind)
#736D52
Tritanopia (blue-blind)
#007F74
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f804f;
/* rgb */ color: rgb(31, 128, 79);
/* oklch */ color: oklch(53.3% 0.117 156.0);
Tailwind
colors: {
  custom: {
    50: '#6aa680',
    500: '#1f804f',
    950: '#000000',
  },
}
SCSS
$custom: #1f804f;
$custom-light: #6aa680;
$custom-dark: #000000;
JSON
{
  "hex": "#1f804f",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 79
  },
  "hsl": {
    "h": 149.691,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53265,
    "c": 0.11673,
    "h": 156
  },
  "luminance": 0.16294
}

Semantic roles & 50–950 ramp

primary
#1F804F
secondary
#B3487E
accent
#4495E4
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #1F804F

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

Preview Lab → · Contrast checker → · Palette generator →

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