#3B7815#3B7815

#3B7815 is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.2% C 0.143 H 136.6°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#3B7815
RGBrgb(59, 120, 21)
HSLhsl(97, 70%, 28%)
HSVhsv(97, 83%, 47%)
CMYKcmyk(50.8%, 0%, 82.5%, 52.9%)
CIE-LABlab(44.82, -37.22, 44.22)
CIE-LCHlch(44.82, 57.80, 130.09°)
OKLaboklab(51.2% -0.1036 0.098)
OKLCHoklch(51.2% 0.143 136.6)
XYZxyz(8.6552, 14.4163, 3.0359)
Luminance0.1442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B7815 #521578
analogous
#6C7815 #3B7815 #157821
triadic
#3B7815 #153B78 #78153B
tetradic
#3B7815 #156C78 #521578 #782115
square
#3B7815 #156C78 #521578 #782115
split-complementary
#3B7815 #211578 #78156C
monochromatic
#0D1A05 #21440C #3B7815 #55AC1E #70DA2D

Accessibility & contrast

On white

5.41
#3B7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#3B7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B7815
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B7815#FFFFFF#000000##FFFFFF
##3B78151.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#746820
Tritanopia (blue-blind)
#387366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #3b7815;
/* rgb */ color: rgb(59, 120, 21);
/* oklch */ color: oklch(51.2% 0.143 136.6);
Tailwind
colors: {
  custom: {
    50: '#789f5c',
    500: '#3b7815',
    950: '#000000',
  },
}
SCSS
$custom: #3b7815;
$custom-light: #789f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b7815",
  "rgb": {
    "r": 59,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 96.97,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51199,
    "c": 0.14259,
    "h": 136.6
  },
  "luminance": 0.14417
}

Semantic roles & 50–950 ramp

primary
#3B7815
secondary
#823BAE
accent
#3BEDA9
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3B7815

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

Preview Lab → · Contrast checker → · Palette generator →

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