#4A6017#4A6017

#4A6017 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.6% C 0.101 H 125.0°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4A6017
RGBrgb(74, 96, 23)
HSLhsl(78, 61%, 23%)
HSVhsv(78, 76%, 38%)
CMYKcmyk(22.9%, 0%, 76%, 62.4%)
CIE-LABlab(37.63, -19.99, 36.86)
CIE-LCHlch(37.63, 41.93, 118.47°)
OKLaboklab(45.56% -0.0578 0.0826)
OKLCHoklch(45.56% 0.101 125)
XYZxyz(7.1616, 9.8834, 2.3408)
Luminance0.0988 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A6017 #2D1760
analogous
#605117 #4A6017 #256017
triadic
#4A6017 #174A60 #60174A
tetradic
#4A6017 #176051 #2D1760 #601725
square
#4A6017 #176051 #2D1760 #601725
split-complementary
#4A6017 #172560 #511760
monochromatic
#131906 #242F0B #4A6017 #709123 #96C32F

Accessibility & contrast

On white

7.06
#4A6017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4A6017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A6017
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A6017#FFFFFF#000000##FFFFFF
##4A60171.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66590A
Deuteranopia (green-blind)
#63581D
Tritanopia (blue-blind)
#4E5B52
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4a6017;
/* rgb */ color: rgb(74, 96, 23);
/* oklch */ color: oklch(45.6% 0.101 125.0);
Tailwind
colors: {
  custom: {
    50: '#7f8d59',
    500: '#4a6017',
    950: '#000000',
  },
}
SCSS
$custom: #4a6017;
$custom-light: #7f8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#4a6017",
  "rgb": {
    "r": 74,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 78.082,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45555,
    "c": 0.10078,
    "h": 125
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#4A6017
secondary
#573C97
accent
#43E474
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#0A0C04
muted
#7C7D79

Preview Lab

Preview with #4A6017

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

Preview Lab → · Contrast checker → · Palette generator →

#4A6017 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva