#3A7B15#3A7B15

#3A7B15 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.147 H 137.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#3A7B15
RGBrgb(58, 123, 21)
HSLhsl(98, 71%, 28%)
HSVhsv(98, 83%, 48%)
CMYKcmyk(52.8%, 0%, 82.9%, 51.8%)
CIE-LABlab(45.80, -38.78, 45.11)
CIE-LCHlch(45.80, 59.49, 130.68°)
OKLaboklab(51.99% -0.1077 0.0999)
OKLCHoklch(51.99% 0.147 137.2)
XYZxyz(8.9630, 15.1189, 3.1553)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7B15 #56157B
analogous
#6D7B15 #3A7B15 #157B23
triadic
#3A7B15 #153A7B #7B153A
tetradic
#3A7B15 #156D7B #56157B #7B2315
square
#3A7B15 #156D7B #56157B #7B2315
split-complementary
#3A7B15 #23157B #7B156D
monochromatic
#0C1A04 #21470C #3A7B15 #53AF1E #6EDB2F

Accessibility & contrast

On white

5.22
#3A7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#3A7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7B15
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7B15#FFFFFF#000000##FFFFFF
##3A7B151.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#776A21
Tritanopia (blue-blind)
#367668
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3a7b15;
/* rgb */ color: rgb(58, 123, 21);
/* oklch */ color: oklch(52.0% 0.147 137.2);
Tailwind
colors: {
  custom: {
    50: '#78a25c',
    500: '#3a7b15',
    950: '#000000',
  },
}
SCSS
$custom: #3a7b15;
$custom-light: #78a25c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7b15",
  "rgb": {
    "r": 58,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 98.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51988,
    "c": 0.14689,
    "h": 137.2
  },
  "luminance": 0.1512
}

Semantic roles & 50–950 ramp

primary
#3A7B15
secondary
#863BB0
accent
#3AEEAD
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #3A7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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