#4A6F17#4A6F17

#4A6F17 is a mid, vivid yellow-green. Relative luminance 0.129; OKLCH L 49.6% C 0.121 H 130.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#4A6F17
RGBrgb(74, 111, 23)
HSLhsl(85, 66%, 26%)
HSVhsv(85, 79%, 44%)
CMYKcmyk(33.3%, 0%, 79.3%, 56.5%)
CIE-LABlab(42.59, -27.53, 41.70)
CIE-LCHlch(42.59, 49.97, 123.44°)
OKLaboklab(49.58% -0.0784 0.0927)
OKLCHoklch(49.58% 0.121 130.2)
XYZxyz(8.6631, 12.8863, 2.8413)
Luminance0.1289 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A6F17 #3C176F
analogous
#6F6817 #4A6F17 #1E6F17
triadic
#4A6F17 #174A6F #6F174A
tetradic
#4A6F17 #176F68 #3C176F #6F171E
square
#4A6F17 #176F68 #3C176F #6F171E
split-complementary
#4A6F17 #171E6F #68176F
monochromatic
#111905 #283C0C #4A6F17 #6CA222 #8DD32D

Accessibility & contrast

On white

5.87
#4A6F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#4A6F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A6F17
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A6F17#FFFFFF#000000##FFFFFF
##4A6F171.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746604
Deuteranopia (green-blind)
#6F6420
Tritanopia (blue-blind)
#4C6A5E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4a6f17;
/* rgb */ color: rgb(74, 111, 23);
/* oklch */ color: oklch(49.6% 0.121 130.2);
Tailwind
colors: {
  custom: {
    50: '#80985c',
    500: '#4a6f17',
    950: '#000000',
  },
}
SCSS
$custom: #4a6f17;
$custom-light: #80985c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a6f17",
  "rgb": {
    "r": 74,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 85.227,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.49582,
    "c": 0.12139,
    "h": 130.2
  },
  "luminance": 0.12887
}

Semantic roles & 50–950 ramp

primary
#4A6F17
secondary
#693DA5
accent
#3FE986
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4A6F17

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

Preview Lab → · Contrast checker → · Palette generator →

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