#3A7917#3A7917

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

Color values

HEX#3A7917
RGBrgb(58, 121, 23)
HSLhsl(99, 68%, 28%)
HSVhsv(99, 81%, 47%)
CMYKcmyk(52.1%, 0%, 81%, 52.5%)
CIE-LABlab(45.13, -37.84, 43.84)
CIE-LCHlch(45.13, 57.91, 130.80°)
OKLaboklab(51.44% -0.1051 0.0975)
OKLCHoklch(51.44% 0.143 137.1)
XYZxyz(8.7367, 14.6355, 3.1750)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7917 #561779
analogous
#6B7917 #3A7917 #177925
triadic
#3A7917 #173A79 #79173A
tetradic
#3A7917 #176B79 #561779 #792517
square
#3A7917 #176B79 #561779 #792517
split-complementary
#3A7917 #251779 #79176B
monochromatic
#0C1A05 #21460D #3A7917 #53AC21 #6ED832

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A7917#FFFFFF#000000##FFFFFF
##3A79171.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)
#756922
Tritanopia (blue-blind)
#367467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #3a7917;
/* rgb */ color: rgb(58, 121, 23);
/* oklch */ color: oklch(51.4% 0.143 137.1);
Tailwind
colors: {
  custom: {
    50: '#77a05d',
    500: '#3a7917',
    950: '#000000',
  },
}
SCSS
$custom: #3a7917;
$custom-light: #77a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7917",
  "rgb": {
    "r": 58,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 98.571,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51443,
    "c": 0.14335,
    "h": 137.1
  },
  "luminance": 0.14636
}

Semantic roles & 50–950 ramp

primary
#3A7917
secondary
#863EAE
accent
#3DEBAD
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F04
muted
#7B7E79

Preview Lab

Preview with #3A7917

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

Preview Lab → · Contrast checker → · Palette generator →

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