#3F841B#3F841B

#3F841B is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 54.7% C 0.153 H 137.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#3F841B
RGBrgb(63, 132, 27)
HSLhsl(99, 66%, 31%)
HSVhsv(99, 80%, 52%)
CMYKcmyk(52.3%, 0%, 79.5%, 48.2%)
CIE-LABlab(49.05, -40.50, 46.30)
CIE-LCHlch(49.05, 61.52, 131.18°)
OKLaboklab(54.74% -0.1123 0.1032)
OKLCHoklch(54.74% 0.153 137.4)
XYZxyz(10.4987, 17.6377, 3.8879)
Luminance0.1764 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F841B #601B84
analogous
#73841B #3F841B #1B842B
triadic
#3F841B #1B3F84 #841B3F
tetradic
#3F841B #1B7384 #601B84 #842B1B
square
#3F841B #1B7384 #601B84 #842B1B
split-complementary
#3F841B #2B1B84 #841B73
monochromatic
#0F1E06 #275111 #3F841B #57B725 #75D841

Accessibility & contrast

On white

4.64
#3F841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#3F841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3F841B
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F841B#FFFFFF#000000##FFFFFF
##3F841B1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897801
Deuteranopia (green-blind)
#807227
Tritanopia (blue-blind)
#3A7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #3f841b;
/* rgb */ color: rgb(63, 132, 27);
/* oklch */ color: oklch(54.7% 0.153 137.4);
Tailwind
colors: {
  custom: {
    50: '#7ca860',
    500: '#3f841b',
    950: '#000000',
  },
}
SCSS
$custom: #3f841b;
$custom-light: #7ca860;
$custom-dark: #000000;
JSON
{
  "hex": "#3f841b",
  "rgb": {
    "r": 63,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 99.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54737,
    "c": 0.15252,
    "h": 137.4
  },
  "luminance": 0.17638
}

Semantic roles & 50–950 ramp

primary
#3F841B
secondary
#9043B7
accent
#3FE9AF
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #3F841B

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

Preview Lab → · Contrast checker → · Palette generator →

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