#3B8217#3B8217

#3B8217 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.0% C 0.154 H 137.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#3B8217
RGBrgb(59, 130, 23)
HSLhsl(100, 70%, 30%)
HSVhsv(100, 82%, 51%)
CMYKcmyk(54.6%, 0%, 82.3%, 49%)
CIE-LABlab(48.20, -41.17, 46.75)
CIE-LCHlch(48.20, 62.29, 131.37°)
OKLaboklab(53.99% -0.1141 0.1036)
OKLCHoklch(53.99% 0.154 137.8)
XYZxyz(9.9406, 16.9562, 3.5595)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B8217 #5E1782
analogous
#718217 #3B8217 #178228
triadic
#3B8217 #173B82 #82173B
tetradic
#3B8217 #177182 #5E1782 #822817
square
#3B8217 #177182 #5E1782 #822817
split-complementary
#3B8217 #281782 #821771
monochromatic
#0C1A05 #234E0E #3B8217 #53B620 #6FDC38

Accessibility & contrast

On white

4.78
#3B8217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#3B8217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B8217
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B8217#FFFFFF#000000##FFFFFF
##3B82171.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7D7024
Tritanopia (blue-blind)
#367D6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3b8217;
/* rgb */ color: rgb(59, 130, 23);
/* oklch */ color: oklch(54.0% 0.154 137.8);
Tailwind
colors: {
  custom: {
    50: '#79a75e',
    500: '#3b8217',
    950: '#000000',
  },
}
SCSS
$custom: #3b8217;
$custom-light: #79a75e;
$custom-dark: #000000;
JSON
{
  "hex": "#3b8217",
  "rgb": {
    "r": 59,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 99.813,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.53986,
    "c": 0.15408,
    "h": 137.8
  },
  "luminance": 0.16957
}

Semantic roles & 50–950 ramp

primary
#3B8217
secondary
#8E3EB6
accent
#3BEDB1
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3B8217

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

Preview Lab → · Contrast checker → · Palette generator →

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