#3F7D17#3F7D17

#3F7D17 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.8% C 0.146 H 136.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#3F7D17
RGBrgb(63, 125, 23)
HSLhsl(96, 69%, 29%)
HSVhsv(96, 82%, 49%)
CMYKcmyk(49.6%, 0%, 81.6%, 51%)
CIE-LABlab(46.69, -37.87, 45.39)
CIE-LCHlch(46.69, 59.11, 129.84°)
OKLaboklab(52.79% -0.1055 0.1007)
OKLCHoklch(52.79% 0.146 136.3)
XYZxyz(9.5379, 15.7852, 3.3547)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F7D17 #55177D
analogous
#727D17 #3F7D17 #177D22
triadic
#3F7D17 #173F7D #7D173F
tetradic
#3F7D17 #17727D #55177D #7D2217
square
#3F7D17 #17727D #55177D #7D2217
split-complementary
#3F7D17 #22177D #7D1772
monochromatic
#0D1A05 #25490D #3F7D17 #59B121 #75DA35

Accessibility & contrast

On white

5.05
#3F7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#3F7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F7D17
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F7D17#FFFFFF#000000##FFFFFF
##3F7D171.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#796D23
Tritanopia (blue-blind)
#3C786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3f7d17;
/* rgb */ color: rgb(63, 125, 23);
/* oklch */ color: oklch(52.8% 0.146 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ba35d',
    500: '#3f7d17',
    950: '#000000',
  },
}
SCSS
$custom: #3f7d17;
$custom-light: #7ba35d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f7d17",
  "rgb": {
    "r": 63,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 96.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52786,
    "c": 0.14582,
    "h": 136.3
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#3F7D17
secondary
#843EB2
accent
#3CECA7
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3F7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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