#3F7817#3F7817

#3F7817 is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.4% C 0.139 H 135.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#3F7817
RGBrgb(63, 120, 23)
HSLhsl(95, 68%, 28%)
HSVhsv(95, 81%, 47%)
CMYKcmyk(47.5%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.01, -35.76, 43.80)
CIE-LCHlch(45.01, 56.55, 129.23°)
OKLaboklab(51.41% -0.0998 0.0974)
OKLCHoklch(51.41% 0.139 135.7)
XYZxyz(8.9208, 14.5510, 3.1490)
Luminance0.1455 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F7817 #501778
analogous
#6F7817 #3F7817 #177820
triadic
#3F7817 #173F78 #78173F
tetradic
#3F7817 #176F78 #501778 #782017
square
#3F7817 #176F78 #501778 #782017
split-complementary
#3F7817 #201778 #78176F
monochromatic
#0D1A05 #24450D #3F7817 #5AAB21 #76D832

Accessibility & contrast

On white

5.37
#3F7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#3F7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F7817
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F7817#FFFFFF#000000##FFFFFF
##3F78171.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#3D7366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #3f7817;
/* rgb */ color: rgb(63, 120, 23);
/* oklch */ color: oklch(51.4% 0.139 135.7);
Tailwind
colors: {
  custom: {
    50: '#7a9f5d',
    500: '#3f7817',
    950: '#000000',
  },
}
SCSS
$custom: #3f7817;
$custom-light: #7a9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f7817",
  "rgb": {
    "r": 63,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 95.258,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51407,
    "c": 0.13942,
    "h": 135.7
  },
  "luminance": 0.14552
}

Semantic roles & 50–950 ramp

primary
#3F7817
secondary
#7F3EAD
accent
#3DEBA3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #3F7817

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

Preview Lab → · Contrast checker → · Palette generator →

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