#3A7915#3A7915

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

Color values

HEX#3A7915
RGBrgb(58, 121, 21)
HSLhsl(98, 70%, 28%)
HSVhsv(98, 83%, 47%)
CMYKcmyk(52.1%, 0%, 82.6%, 52.5%)
CIE-LABlab(45.12, -37.96, 44.48)
CIE-LCHlch(45.12, 58.48, 130.48°)
OKLaboklab(51.43% -0.1055 0.0985)
OKLCHoklch(51.43% 0.144 137)
XYZxyz(8.7174, 14.6278, 3.0734)
Luminance0.1463 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7915 #541579
analogous
#6C7915 #3A7915 #157922
triadic
#3A7915 #153A79 #79153A
tetradic
#3A7915 #156C79 #541579 #792215
square
#3A7915 #156C79 #541579 #792215
split-complementary
#3A7915 #221579 #79156C
monochromatic
#0C1A05 #21450C #3A7915 #53AD1E #6EDB2E

Accessibility & contrast

On white

5.35
#3A7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#3A7915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7915
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7915#FFFFFF#000000##FFFFFF
##3A79151.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#367467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #3a7915;
/* rgb */ color: rgb(58, 121, 21);
/* oklch */ color: oklch(51.4% 0.144 137.0);
Tailwind
colors: {
  custom: {
    50: '#77a05c',
    500: '#3a7915',
    950: '#000000',
  },
}
SCSS
$custom: #3a7915;
$custom-light: #77a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7915",
  "rgb": {
    "r": 58,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 97.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51431,
    "c": 0.14437,
    "h": 137
  },
  "luminance": 0.14628
}

Semantic roles & 50–950 ramp

primary
#3A7915
secondary
#843BAF
accent
#3BEDAB
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F04
muted
#7B7E79

Preview Lab

Preview with #3A7915

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

Preview Lab → · Contrast checker → · Palette generator →

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