#3F8217#3F8217

#3F8217 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.2% C 0.152 H 136.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#3F8217
RGBrgb(63, 130, 23)
HSLhsl(98, 70%, 30%)
HSVhsv(98, 82%, 51%)
CMYKcmyk(51.5%, 0%, 82.3%, 49%)
CIE-LABlab(48.36, -39.93, 46.95)
CIE-LCHlch(48.36, 61.64, 130.38°)
OKLaboklab(54.16% -0.111 0.104)
OKLCHoklch(54.16% 0.152 136.9)
XYZxyz(10.1869, 17.0832, 3.5710)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F8217 #5A1782
analogous
#758217 #3F8217 #178224
triadic
#3F8217 #173F82 #82173F
tetradic
#3F8217 #177582 #5A1782 #822417
square
#3F8217 #177582 #5A1782 #822417
split-complementary
#3F8217 #241782 #821775
monochromatic
#0D1A05 #264E0E #3F8217 #58B620 #75DC38

Accessibility & contrast

On white

4.75
#3F8217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#3F8217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F8217
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F8217#FFFFFF#000000##FFFFFF
##3F82171.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#3B7D6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3f8217;
/* rgb */ color: rgb(63, 130, 23);
/* oklch */ color: oklch(54.2% 0.152 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ba75e',
    500: '#3f8217',
    950: '#000000',
  },
}
SCSS
$custom: #3f8217;
$custom-light: #7ba75e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f8217",
  "rgb": {
    "r": 63,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 97.57,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.54163,
    "c": 0.15209,
    "h": 136.9
  },
  "luminance": 0.17084
}

Semantic roles & 50–950 ramp

primary
#3F8217
secondary
#8A3EB6
accent
#3BEDAA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3F8217

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

Preview Lab → · Contrast checker → · Palette generator →

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