#3F7818#3F7818

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

Color values

HEX#3F7818
RGBrgb(63, 120, 24)
HSLhsl(96, 67%, 28%)
HSVhsv(96, 80%, 47%)
CMYKcmyk(47.5%, 0%, 80%, 52.9%)
CIE-LABlab(45.02, -35.70, 43.47)
CIE-LCHlch(45.02, 56.25, 129.40°)
OKLaboklab(51.41% -0.0996 0.0968)
OKLCHoklch(51.41% 0.139 135.8)
XYZxyz(8.9310, 14.5551, 3.2028)
Luminance0.1456 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F7818 #511878
analogous
#6F7818 #3F7818 #187821
triadic
#3F7818 #183F78 #78183F
tetradic
#3F7818 #186F78 #511878 #782118
square
#3F7818 #186F78 #511878 #782118
split-complementary
#3F7818 #211878 #78186F
monochromatic
#0D1A05 #24450E #3F7818 #5AAB22 #76D634

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3F7818#FFFFFF#000000##FFFFFF
##3F78181.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)
#7D6D01
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#3D7366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #3f7818;
/* rgb */ color: rgb(63, 120, 24);
/* oklch */ color: oklch(51.4% 0.139 135.8);
Tailwind
colors: {
  custom: {
    50: '#7a9f5d',
    500: '#3f7818',
    950: '#000000',
  },
}
SCSS
$custom: #3f7818;
$custom-light: #7a9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f7818",
  "rgb": {
    "r": 63,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 95.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51413,
    "c": 0.13888,
    "h": 135.8
  },
  "luminance": 0.14556
}

Semantic roles & 50–950 ramp

primary
#3F7818
secondary
#803FAD
accent
#3EEAA4
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #3F7818

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

Preview Lab → · Contrast checker → · Palette generator →

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