#3A7817#3A7817

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

Color values

HEX#3A7817
RGBrgb(58, 120, 23)
HSLhsl(98, 68%, 28%)
HSVhsv(98, 81%, 47%)
CMYKcmyk(51.7%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.79, -37.43, 43.52)
CIE-LCHlch(44.79, 57.40, 130.70°)
OKLaboklab(51.16% -0.1039 0.0968)
OKLCHoklch(51.16% 0.142 137)
XYZxyz(8.6158, 14.3937, 3.1347)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7817 #551778
analogous
#6A7817 #3A7817 #177825
triadic
#3A7817 #173A78 #78173A
tetradic
#3A7817 #176A78 #551778 #782517
square
#3A7817 #176A78 #551778 #782517
split-complementary
#3A7817 #251778 #78176A
monochromatic
#0C1A05 #21450D #3A7817 #53AB21 #6ED832

Accessibility & contrast

On white

5.41
#3A7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3A7817
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7817#FFFFFF#000000##FFFFFF
##3A78171.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a7817;
/* rgb */ color: rgb(58, 120, 23);
/* oklch */ color: oklch(51.2% 0.142 137.0);
Tailwind
colors: {
  custom: {
    50: '#779f5d',
    500: '#3a7817',
    950: '#000000',
  },
}
SCSS
$custom: #3a7817;
$custom-light: #779f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7817",
  "rgb": {
    "r": 58,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 98.351,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51164,
    "c": 0.14206,
    "h": 137
  },
  "luminance": 0.14394
}

Semantic roles & 50–950 ramp

primary
#3A7817
secondary
#853EAD
accent
#3DEBAC
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7817

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

Preview Lab → · Contrast checker → · Palette generator →

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