#4C7F17#4C7F17

#4C7F17 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.0% C 0.141 H 133.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4C7F17
RGBrgb(76, 127, 23)
HSLhsl(89, 69%, 29%)
HSVhsv(89, 82%, 50%)
CMYKcmyk(40.2%, 0%, 81.9%, 50.2%)
CIE-LABlab(47.98, -34.15, 46.81)
CIE-LCHlch(47.98, 57.95, 126.11°)
OKLaboklab(54.01% -0.0964 0.1034)
OKLCHoklch(54.01% 0.141 133)
XYZxyz(10.7244, 16.7766, 3.4836)
Luminance0.1678 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7F17 #4A177F
analogous
#7F7E17 #4C7F17 #187F17
triadic
#4C7F17 #174C7F #7F174C
tetradic
#4C7F17 #177F7E #4A177F #7F1718
square
#4C7F17 #177F7E #4A177F #7F1718
split-complementary
#4C7F17 #17187F #7E177F
monochromatic
#101A05 #2D4B0E #4C7F17 #6BB320 #8ADB36

Accessibility & contrast

On white

4.82
#4C7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#4C7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7F17
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7F17#FFFFFF#000000##FFFFFF
##4C7F171.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7E7023
Tritanopia (blue-blind)
#4C7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4c7f17;
/* rgb */ color: rgb(76, 127, 23);
/* oklch */ color: oklch(54.0% 0.141 133.0);
Tailwind
colors: {
  custom: {
    50: '#83a45e',
    500: '#4c7f17',
    950: '#000000',
  },
}
SCSS
$custom: #4c7f17;
$custom-light: #83a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7f17",
  "rgb": {
    "r": 76,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 89.423,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5401,
    "c": 0.14135,
    "h": 133
  },
  "luminance": 0.16777
}

Semantic roles & 50–950 ramp

primary
#4C7F17
secondary
#783EB4
accent
#3CEC92
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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