#3F781B#3F781B

#3F781B is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.4% C 0.137 H 136.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#3F781B
RGBrgb(63, 120, 27)
HSLhsl(97, 63%, 29%)
HSVhsv(97, 78%, 47%)
CMYKcmyk(47.5%, 0%, 77.5%, 52.9%)
CIE-LABlab(45.04, -35.50, 42.40)
CIE-LCHlch(45.04, 55.30, 129.94°)
OKLaboklab(51.43% -0.0988 0.0951)
OKLCHoklch(51.43% 0.137 136.1)
XYZxyz(8.9640, 14.5683, 3.3763)
Luminance0.1457 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F781B #541B78
analogous
#6E781B #3F781B #1B7826
triadic
#3F781B #1B3F78 #781B3F
tetradic
#3F781B #1B6E78 #541B78 #78261B
square
#3F781B #1B6E78 #541B78 #78261B
split-complementary
#3F781B #261B78 #781B6E
monochromatic
#0D1906 #254610 #3F781B #59AA26 #76D33B

Accessibility & contrast

On white

5.37
#3F781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#3F781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F781B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F781B#FFFFFF#000000##FFFFFF
##3F781B1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E08
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#3D7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #3f781b;
/* rgb */ color: rgb(63, 120, 27);
/* oklch */ color: oklch(51.4% 0.137 136.1);
Tailwind
colors: {
  custom: {
    50: '#7a9f5f',
    500: '#3f781b',
    950: '#000000',
  },
}
SCSS
$custom: #3f781b;
$custom-light: #7a9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f781b",
  "rgb": {
    "r": 63,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 96.774,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51434,
    "c": 0.13712,
    "h": 136.1
  },
  "luminance": 0.14569
}

Semantic roles & 50–950 ramp

primary
#3F781B
secondary
#8343AC
accent
#41E6A7
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #3F781B

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

Preview Lab → · Contrast checker → · Palette generator →

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