#3A7717#3A7717

#3A7717 is a mid, vivid yellow-green. Relative luminance 0.142; OKLCH L 50.9% C 0.141 H 136.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#3A7717
RGBrgb(58, 119, 23)
HSLhsl(98, 68%, 28%)
HSVhsv(98, 81%, 47%)
CMYKcmyk(51.3%, 0%, 80.7%, 53.3%)
CIE-LABlab(44.45, -37.01, 43.19)
CIE-LCHlch(44.45, 56.88, 130.59°)
OKLaboklab(50.89% -0.1028 0.0962)
OKLCHoklch(50.89% 0.141 136.9)
XYZxyz(8.4961, 14.1545, 3.0948)
Luminance0.1416 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7717 #541777
analogous
#6A7717 #3A7717 #177724
triadic
#3A7717 #173A77 #77173A
tetradic
#3A7717 #176A77 #541777 #772417
square
#3A7717 #176A77 #541777 #772417
split-complementary
#3A7717 #241777 #77176A
monochromatic
#0C1A05 #21440D #3A7717 #53AA21 #6ED731

Accessibility & contrast

On white

5.48
#3A7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#3A7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7717
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7717#FFFFFF#000000##FFFFFF
##3A77171.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#736722
Tritanopia (blue-blind)
#367265
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #3a7717;
/* rgb */ color: rgb(58, 119, 23);
/* oklch */ color: oklch(50.9% 0.141 136.9);
Tailwind
colors: {
  custom: {
    50: '#779f5c',
    500: '#3a7717',
    950: '#000000',
  },
}
SCSS
$custom: #3a7717;
$custom-light: #779f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7717",
  "rgb": {
    "r": 58,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 98.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50886,
    "c": 0.14079,
    "h": 136.9
  },
  "luminance": 0.14155
}

Semantic roles & 50–950 ramp

primary
#3A7717
secondary
#843EAC
accent
#3DEAAB
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7717

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

Preview Lab → · Contrast checker → · Palette generator →

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