#3A7315#3A7315

#3A7315 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.8% C 0.137 H 136.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#3A7315
RGBrgb(58, 115, 21)
HSLhsl(96, 69%, 27%)
HSVhsv(96, 82%, 45%)
CMYKcmyk(49.6%, 0%, 81.7%, 54.9%)
CIE-LABlab(43.08, -35.45, 42.57)
CIE-LCHlch(43.08, 55.40, 129.79°)
OKLaboklab(49.76% -0.0988 0.0945)
OKLCHoklch(49.76% 0.137 136.3)
XYZxyz(8.0108, 13.2146, 2.8379)
Luminance0.1321 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7315 #4E1573
analogous
#697315 #3A7315 #15731F
triadic
#3A7315 #153A73 #73153A
tetradic
#3A7315 #156973 #4E1573 #731F15
square
#3A7315 #156973 #4E1573 #731F15
split-complementary
#3A7315 #1F1573 #731569
monochromatic
#0D1A05 #203F0C #3A7315 #54A71E #6FD82A

Accessibility & contrast

On white

5.76
#3A7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#3A7315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7315
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7315#FFFFFF#000000##FFFFFF
##3A73151.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#706420
Tritanopia (blue-blind)
#376E62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a7315;
/* rgb */ color: rgb(58, 115, 21);
/* oklch */ color: oklch(49.8% 0.137 136.3);
Tailwind
colors: {
  custom: {
    50: '#769c5b',
    500: '#3a7315',
    950: '#000000',
  },
}
SCSS
$custom: #3a7315;
$custom-light: #769c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7315",
  "rgb": {
    "r": 58,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 96.383,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49756,
    "c": 0.13672,
    "h": 136.3
  },
  "luminance": 0.13215
}

Semantic roles & 50–950 ramp

primary
#3A7315
secondary
#7E3BA9
accent
#3CECA7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7315

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

Preview Lab → · Contrast checker → · Palette generator →

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