#3F791B#3F791B

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

Color values

HEX#3F791B
RGBrgb(63, 121, 27)
HSLhsl(97, 64%, 29%)
HSVhsv(97, 78%, 47%)
CMYKcmyk(47.9%, 0%, 77.7%, 52.5%)
CIE-LABlab(45.37, -35.93, 42.73)
CIE-LCHlch(45.37, 55.83, 130.06°)
OKLaboklab(51.71% -0.1 0.0957)
OKLCHoklch(51.71% 0.138 136.2)
XYZxyz(9.0849, 14.8101, 3.4166)
Luminance0.1481 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F791B #551B79
analogous
#6E791B #3F791B #1B7926
triadic
#3F791B #1B3F79 #791B3F
tetradic
#3F791B #1B6E79 #551B79 #79261B
square
#3F791B #1B6E79 #551B79 #79261B
split-complementary
#3F791B #261B79 #791B6E
monochromatic
#0D1906 #254710 #3F791B #59AB26 #75D33B

Accessibility & contrast

On white

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

On black

3.96
#3F791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3F791B#FFFFFF#000000##FFFFFF
##3F791B1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f791b;
/* rgb */ color: rgb(63, 121, 27);
/* oklch */ color: oklch(51.7% 0.138 136.2);
Tailwind
colors: {
  custom: {
    50: '#7aa05f',
    500: '#3f791b',
    950: '#000000',
  },
}
SCSS
$custom: #3f791b;
$custom-light: #7aa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f791b",
  "rgb": {
    "r": 63,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 97.021,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5171,
    "c": 0.13843,
    "h": 136.2
  },
  "luminance": 0.14811
}

Semantic roles & 50–950 ramp

primary
#3F791B
secondary
#8443AD
accent
#41E7A7
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #3F791B

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

Preview Lab → · Contrast checker → · Palette generator →

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