#3F7217#3F7217

#3F7217 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.7% C 0.132 H 134.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#3F7217
RGBrgb(63, 114, 23)
HSLhsl(94, 66%, 27%)
HSVhsv(94, 80%, 45%)
CMYKcmyk(44.7%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.99, -33.15, 41.87)
CIE-LCHlch(42.99, 53.41, 128.37°)
OKLaboklab(49.75% -0.0928 0.0933)
OKLCHoklch(49.75% 0.132 134.8)
XYZxyz(8.2217, 13.1528, 2.9160)
Luminance0.1315 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F7217 #4A1772
analogous
#6D7217 #3F7217 #17721C
triadic
#3F7217 #173F72 #72173F
tetradic
#3F7217 #176D72 #4A1772 #721C17
square
#3F7217 #176D72 #4A1772 #721C17
split-complementary
#3F7217 #1C1772 #72176D
monochromatic
#0E1905 #233F0D #3F7217 #5BA521 #78D52E

Accessibility & contrast

On white

5.78
#3F7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#3F7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F7217
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F7217#FFFFFF#000000##FFFFFF
##3F72171.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776802
Deuteranopia (green-blind)
#706421
Tritanopia (blue-blind)
#3E6D61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3f7217;
/* rgb */ color: rgb(63, 114, 23);
/* oklch */ color: oklch(49.7% 0.132 134.8);
Tailwind
colors: {
  custom: {
    50: '#799b5c',
    500: '#3f7217',
    950: '#000000',
  },
}
SCSS
$custom: #3f7217;
$custom-light: #799b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f7217",
  "rgb": {
    "r": 63,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 93.626,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49749,
    "c": 0.13159,
    "h": 134.8
  },
  "luminance": 0.13153
}

Semantic roles & 50–950 ramp

primary
#3F7217
secondary
#793DA8
accent
#3EE99E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3F7217

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

Preview Lab → · Contrast checker → · Palette generator →

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