#4A7F17#4A7F17

#4A7F17 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 53.9% C 0.142 H 133.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#4A7F17
RGBrgb(74, 127, 23)
HSLhsl(91, 69%, 29%)
HSVhsv(91, 82%, 50%)
CMYKcmyk(41.7%, 0%, 81.9%, 50.2%)
CIE-LABlab(47.87, -34.89, 46.68)
CIE-LCHlch(47.87, 58.28, 126.78°)
OKLaboklab(53.9% -0.0982 0.1032)
OKLCHoklch(53.9% 0.142 133.6)
XYZxyz(10.5679, 16.6959, 3.4762)
Luminance0.1670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7F17 #4C177F
analogous
#7E7F17 #4A7F17 #177F18
triadic
#4A7F17 #174A7F #7F174A
tetradic
#4A7F17 #177E7F #4C177F #7F1817
square
#4A7F17 #177E7F #4C177F #7F1817
split-complementary
#4A7F17 #18177F #7F177E
monochromatic
#0F1A05 #2C4B0E #4A7F17 #68B320 #87DB36

Accessibility & contrast

On white

4.84
#4A7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4A7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7F17
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7F17#FFFFFF#000000##FFFFFF
##4A7F171.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7023
Tritanopia (blue-blind)
#4A7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4a7f17;
/* rgb */ color: rgb(74, 127, 23);
/* oklch */ color: oklch(53.9% 0.142 133.6);
Tailwind
colors: {
  custom: {
    50: '#82a45e',
    500: '#4a7f17',
    950: '#000000',
  },
}
SCSS
$custom: #4a7f17;
$custom-light: #82a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7f17",
  "rgb": {
    "r": 74,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 90.577,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53898,
    "c": 0.14245,
    "h": 133.6
  },
  "luminance": 0.16696
}

Semantic roles & 50–950 ramp

primary
#4A7F17
secondary
#7A3EB4
accent
#3CEC96
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4A7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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