#3A7017#3A7017

#3A7017 is a mid, vivid yellow-green. Relative luminance 0.126; OKLCH L 48.9% C 0.132 H 136.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#3A7017
RGBrgb(58, 112, 23)
HSLhsl(96, 66%, 26%)
HSVhsv(96, 79%, 44%)
CMYKcmyk(48.2%, 0%, 79.5%, 56.1%)
CIE-LABlab(42.08, -34.04, 40.91)
CIE-LCHlch(42.08, 53.22, 129.77°)
OKLaboklab(48.93% -0.0948 0.0914)
OKLCHoklch(48.93% 0.132 136.1)
XYZxyz(7.6935, 12.5493, 2.8273)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7017 #4D1770
analogous
#677017 #3A7017 #177020
triadic
#3A7017 #173A70 #70173A
tetradic
#3A7017 #176770 #4D1770 #702017
square
#3A7017 #176770 #4D1770 #702017
split-complementary
#3A7017 #201770 #701767
monochromatic
#0D1905 #203D0D #3A7017 #54A321 #6FD42D

Accessibility & contrast

On white

5.98
#3A7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#3A7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7017
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7017#FFFFFF#000000##FFFFFF
##3A70171.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746603
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#386C5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a7017;
/* rgb */ color: rgb(58, 112, 23);
/* oklch */ color: oklch(48.9% 0.132 136.1);
Tailwind
colors: {
  custom: {
    50: '#76995b',
    500: '#3a7017',
    950: '#000000',
  },
}
SCSS
$custom: #3a7017;
$custom-light: #76995b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7017",
  "rgb": {
    "r": 58,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 96.404,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48931,
    "c": 0.13169,
    "h": 136.1
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#3A7017
secondary
#7D3DA6
accent
#3FE9A6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7017

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

Preview Lab → · Contrast checker → · Palette generator →

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