#3A7815#3A7815

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

Color values

HEX#3A7815
RGBrgb(58, 120, 21)
HSLhsl(98, 70%, 28%)
HSVhsv(98, 83%, 47%)
CMYKcmyk(51.7%, 0%, 82.5%, 52.9%)
CIE-LABlab(44.78, -37.55, 44.17)
CIE-LCHlch(44.78, 57.97, 130.37°)
OKLaboklab(51.15% -0.1044 0.0979)
OKLCHoklch(51.15% 0.143 136.8)
XYZxyz(8.5965, 14.3860, 3.0331)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7815 #531578
analogous
#6B7815 #3A7815 #157822
triadic
#3A7815 #153A78 #78153A
tetradic
#3A7815 #156B78 #531578 #782215
square
#3A7815 #156B78 #531578 #782215
split-complementary
#3A7815 #221578 #78156B
monochromatic
#0D1A05 #21440C #3A7815 #53AC1E #6EDA2D

Accessibility & contrast

On white

5.42
#3A7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3A7815
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7815#FFFFFF#000000##FFFFFF
##3A78151.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a7815;
/* rgb */ color: rgb(58, 120, 21);
/* oklch */ color: oklch(51.2% 0.143 136.8);
Tailwind
colors: {
  custom: {
    50: '#779f5c',
    500: '#3a7815',
    950: '#000000',
  },
}
SCSS
$custom: #3a7815;
$custom-light: #779f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7815",
  "rgb": {
    "r": 58,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 97.576,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51152,
    "c": 0.14311,
    "h": 136.8
  },
  "luminance": 0.14387
}

Semantic roles & 50–950 ramp

primary
#3A7815
secondary
#833BAE
accent
#3BEDAA
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7815

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

Preview Lab → · Contrast checker → · Palette generator →

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