#3F8218#3F8218

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

Color values

HEX#3F8218
RGBrgb(63, 130, 24)
HSLhsl(98, 69%, 30%)
HSVhsv(98, 82%, 51%)
CMYKcmyk(51.5%, 0%, 81.5%, 49%)
CIE-LABlab(48.37, -39.87, 46.64)
CIE-LCHlch(48.37, 61.36, 130.52°)
OKLaboklab(54.17% -0.1108 0.1035)
OKLCHoklch(54.17% 0.152 137)
XYZxyz(10.1971, 17.0872, 3.6248)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F8218 #5B1882
analogous
#748218 #3F8218 #188226
triadic
#3F8218 #183F82 #82183F
tetradic
#3F8218 #187482 #5B1882 #822618
square
#3F8218 #187482 #5B1882 #822618
split-complementary
#3F8218 #261882 #821874
monochromatic
#0D1B05 #264E0E #3F8218 #58B622 #75DB3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F8218#FFFFFF#000000##FFFFFF
##3F82181.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: #3f8218;
/* rgb */ color: rgb(63, 130, 24);
/* oklch */ color: oklch(54.2% 0.152 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ba75f',
    500: '#3f8218',
    950: '#000000',
  },
}
SCSS
$custom: #3f8218;
$custom-light: #7ba75f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f8218",
  "rgb": {
    "r": 63,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 97.925,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54168,
    "c": 0.15159,
    "h": 137
  },
  "luminance": 0.17088
}

Semantic roles & 50–950 ramp

primary
#3F8218
secondary
#8B40B6
accent
#3CECAB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3F8218

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

Preview Lab → · Contrast checker → · Palette generator →

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