#4C7E17#4C7E17

#4C7E17 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.7% C 0.140 H 132.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#4C7E17
RGBrgb(76, 126, 23)
HSLhsl(89, 69%, 29%)
HSVhsv(89, 82%, 49%)
CMYKcmyk(39.7%, 0%, 81.7%, 50.6%)
CIE-LABlab(47.65, -33.71, 46.51)
CIE-LCHlch(47.65, 57.44, 125.93°)
OKLaboklab(53.74% -0.0952 0.1028)
OKLCHoklch(53.74% 0.14 132.8)
XYZxyz(10.5959, 16.5196, 3.4407)
Luminance0.1652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7E17 #49177E
analogous
#7E7D17 #4C7E17 #197E17
triadic
#4C7E17 #174C7E #7E174C
tetradic
#4C7E17 #177E7D #49177E #7E1719
square
#4C7E17 #177E7D #49177E #7E1719
split-complementary
#4C7E17 #17197E #7D177E
monochromatic
#101A05 #2D4A0E #4C7E17 #6BB220 #8ADA35

Accessibility & contrast

On white

4.88
#4C7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#4C7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7E17
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7E17#FFFFFF#000000##FFFFFF
##4C7E171.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c7e17;
/* rgb */ color: rgb(76, 126, 23);
/* oklch */ color: oklch(53.7% 0.140 132.8);
Tailwind
colors: {
  custom: {
    50: '#83a45e',
    500: '#4c7e17',
    950: '#000000',
  },
}
SCSS
$custom: #4c7e17;
$custom-light: #83a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7e17",
  "rgb": {
    "r": 76,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 89.126,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53742,
    "c": 0.14006,
    "h": 132.8
  },
  "luminance": 0.1652
}

Semantic roles & 50–950 ramp

primary
#4C7E17
secondary
#773EB3
accent
#3CEC91
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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