#3F8215#3F8215

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

Color values

HEX#3F8215
RGBrgb(63, 130, 21)
HSLhsl(97, 72%, 30%)
HSVhsv(97, 84%, 51%)
CMYKcmyk(51.5%, 0%, 83.8%, 49%)
CIE-LABlab(48.35, -40.04, 47.55)
CIE-LCHlch(48.35, 62.16, 130.10°)
OKLaboklab(54.15% -0.1114 0.1049)
OKLCHoklch(54.15% 0.153 136.7)
XYZxyz(10.1676, 17.0754, 3.4694)
Luminance0.1708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F8215 #581582
analogous
#758215 #3F8215 #158222
triadic
#3F8215 #153F82 #82153F
tetradic
#3F8215 #157582 #581582 #822215
square
#3F8215 #157582 #581582 #822215
split-complementary
#3F8215 #221582 #821575
monochromatic
#0D1A04 #254D0C #3F8215 #59B71E #75DE33

Accessibility & contrast

On white

4.76
#3F8215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3F8215
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F8215#FFFFFF#000000##FFFFFF
##3F82151.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7E7122
Tritanopia (blue-blind)
#3B7D6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3f8215;
/* rgb */ color: rgb(63, 130, 21);
/* oklch */ color: oklch(54.2% 0.153 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ca75d',
    500: '#3f8215',
    950: '#000000',
  },
}
SCSS
$custom: #3f8215;
$custom-light: #7ca75d;
$custom-dark: #000000;
JSON
{
  "hex": "#3f8215",
  "rgb": {
    "r": 63,
    "g": 130,
    "b": 21
  },
  "hsl": {
    "h": 96.881,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54151,
    "c": 0.15302,
    "h": 136.7
  },
  "luminance": 0.17076
}

Semantic roles & 50–950 ramp

primary
#3F8215
secondary
#873CB7
accent
#39EFA9
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3F8215

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

Preview Lab → · Contrast checker → · Palette generator →

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