#3A7015#3A7015

#3A7015 is a mid, vivid yellow-green. Relative luminance 0.125; OKLCH L 48.9% C 0.133 H 135.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#3A7015
RGBrgb(58, 112, 21)
HSLhsl(96, 68%, 26%)
HSVhsv(96, 81%, 44%)
CMYKcmyk(48.2%, 0%, 81.2%, 56.1%)
CIE-LABlab(42.06, -34.17, 41.60)
CIE-LCHlch(42.06, 53.84, 129.40°)
OKLaboklab(48.92% -0.0953 0.0925)
OKLCHoklch(48.92% 0.133 135.9)
XYZxyz(7.6743, 12.5415, 2.7257)
Luminance0.1254 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7015 #4B1570
analogous
#677015 #3A7015 #15701D
triadic
#3A7015 #153A70 #70153A
tetradic
#3A7015 #156770 #4B1570 #701D15
square
#3A7015 #156770 #4B1570 #701D15
split-complementary
#3A7015 #1D1570 #701567
monochromatic
#0D1A05 #1F3C0B #3A7015 #55A41F #6FD729

Accessibility & contrast

On white

5.99
#3A7015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#3A7015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7015
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7015#FFFFFF#000000##FFFFFF
##3A70151.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746600
Deuteranopia (green-blind)
#6D621F
Tritanopia (blue-blind)
#386C5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a7015;
/* rgb */ color: rgb(58, 112, 21);
/* oklch */ color: oklch(48.9% 0.133 135.9);
Tailwind
colors: {
  custom: {
    50: '#76995b',
    500: '#3a7015',
    950: '#000000',
  },
}
SCSS
$custom: #3a7015;
$custom-light: #76995b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7015",
  "rgb": {
    "r": 58,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 95.604,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48918,
    "c": 0.13283,
    "h": 135.9
  },
  "luminance": 0.12542
}

Semantic roles & 50–950 ramp

primary
#3A7015
secondary
#7A3BA6
accent
#3DEBA4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7015

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

Preview Lab → · Contrast checker → · Palette generator →

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