#3F791F#3F791F

#3F791F is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.7% C 0.136 H 136.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#3F791F
RGBrgb(63, 121, 31)
HSLhsl(99, 59%, 30%)
HSVhsv(99, 74%, 47%)
CMYKcmyk(47.9%, 0%, 74.4%, 52.5%)
CIE-LABlab(45.40, -35.63, 41.22)
CIE-LCHlch(45.40, 54.48, 130.84°)
OKLaboklab(51.74% -0.0989 0.0932)
OKLCHoklch(51.74% 0.136 136.7)
XYZxyz(9.1343, 14.8298, 3.6772)
Luminance0.1483 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F791F #591F79
analogous
#6C791F #3F791F #1F792C
triadic
#3F791F #1F3F79 #791F3F
tetradic
#3F791F #1F6C79 #591F79 #792C1F
square
#3F791F #1F6C79 #591F79 #792C1F
split-complementary
#3F791F #2C1F79 #791F6C
monochromatic
#0D1806 #264813 #3F791F #58AA2B #75CF43

Accessibility & contrast

On white

5.30
#3F791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#3F791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F791F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F791F#FFFFFF#000000##FFFFFF
##3F791F1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#3C7467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #3f791f;
/* rgb */ color: rgb(63, 121, 31);
/* oklch */ color: oklch(51.7% 0.136 136.7);
Tailwind
colors: {
  custom: {
    50: '#7aa061',
    500: '#3f791f',
    950: '#000000',
  },
}
SCSS
$custom: #3f791f;
$custom-light: #7aa061;
$custom-dark: #000000;
JSON
{
  "hex": "#3f791f",
  "rgb": {
    "r": 63,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 98.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51741,
    "c": 0.13588,
    "h": 136.7
  },
  "luminance": 0.1483
}

Semantic roles & 50–950 ramp

primary
#3F791F
secondary
#8847AC
accent
#45E2AB
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #3F791F

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

Preview Lab → · Contrast checker → · Palette generator →

#3F791F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva