#3D791B#3D791B

#3D791B is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 51.6% C 0.139 H 136.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#3D791B
RGBrgb(61, 121, 27)
HSLhsl(98, 64%, 29%)
HSVhsv(98, 78%, 47%)
CMYKcmyk(49.6%, 0%, 77.7%, 52.5%)
CIE-LABlab(45.28, -36.60, 42.62)
CIE-LCHlch(45.28, 56.17, 130.66°)
OKLaboklab(51.61% -0.1017 0.0955)
OKLCHoklch(51.61% 0.139 136.8)
XYZxyz(8.9594, 14.7454, 3.4107)
Luminance0.1475 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D791B #571B79
analogous
#6C791B #3D791B #1B7928
triadic
#3D791B #1B3D79 #791B3D
tetradic
#3D791B #1B6C79 #571B79 #79281B
square
#3D791B #1B6C79 #571B79 #79281B
split-complementary
#3D791B #281B79 #791B6C
monochromatic
#0D1906 #244710 #3D791B #56AB26 #72D33B

Accessibility & contrast

On white

5.32
#3D791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#3D791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3D791B
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D791B#FFFFFF#000000##FFFFFF
##3D791B1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3d791b;
/* rgb */ color: rgb(61, 121, 27);
/* oklch */ color: oklch(51.6% 0.139 136.8);
Tailwind
colors: {
  custom: {
    50: '#79a05f',
    500: '#3d791b',
    950: '#000000',
  },
}
SCSS
$custom: #3d791b;
$custom-light: #79a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#3d791b",
  "rgb": {
    "r": 61,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 98.298,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.13949,
    "h": 136.8
  },
  "luminance": 0.14746
}

Semantic roles & 50–950 ramp

primary
#3D791B
secondary
#8743AD
accent
#41E7AB
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #3D791B

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

Preview Lab → · Contrast checker → · Palette generator →

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