#3F8318#3F8318

#3F8318 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.4% C 0.153 H 137.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#3F8318
RGBrgb(63, 131, 24)
HSLhsl(98, 69%, 30%)
HSVhsv(98, 82%, 51%)
CMYKcmyk(51.9%, 0%, 81.7%, 48.6%)
CIE-LABlab(48.70, -40.28, 46.96)
CIE-LCHlch(48.70, 61.87, 130.62°)
OKLaboklab(54.44% -0.1119 0.1041)
OKLCHoklch(54.44% 0.153 137.1)
XYZxyz(10.3307, 17.3546, 3.6694)
Luminance0.1736 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F8318 #5C1883
analogous
#748318 #3F8318 #188327
triadic
#3F8318 #183F83 #83183F
tetradic
#3F8318 #187483 #5C1883 #832718
square
#3F8318 #187483 #5C1883 #832718
split-complementary
#3F8318 #271883 #831874
monochromatic
#0D1C05 #264F0F #3F8318 #58B721 #75DB3A

Accessibility & contrast

On white

4.70
#3F8318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#3F8318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F8318
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F8318#FFFFFF#000000##FFFFFF
##3F83181.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#3B7E6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #3f8318;
/* rgb */ color: rgb(63, 131, 24);
/* oklch */ color: oklch(54.4% 0.153 137.1);
Tailwind
colors: {
  custom: {
    50: '#7ca85f',
    500: '#3f8318',
    950: '#000000',
  },
}
SCSS
$custom: #3f8318;
$custom-light: #7ca85f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f8318",
  "rgb": {
    "r": 63,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 98.131,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54443,
    "c": 0.15283,
    "h": 137.1
  },
  "luminance": 0.17355
}

Semantic roles & 50–950 ramp

primary
#3F8318
secondary
#8C40B7
accent
#3CECAC
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3F8318

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

Preview Lab → · Contrast checker → · Palette generator →

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