#4C7C17#4C7C17

#4C7C17 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.2% C 0.137 H 132.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#4C7C17
RGBrgb(76, 124, 23)
HSLhsl(89, 69%, 29%)
HSVhsv(89, 81%, 49%)
CMYKcmyk(38.7%, 0%, 81.5%, 51.4%)
CIE-LABlab(46.99, -32.81, 45.90)
CIE-LCHlch(46.99, 56.42, 125.56°)
OKLaboklab(53.2% -0.0927 0.1015)
OKLCHoklch(53.2% 0.137 132.4)
XYZxyz(10.3427, 16.0132, 3.3564)
Luminance0.1601 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7C17 #47177C
analogous
#7C7A17 #4C7C17 #1A7C17
triadic
#4C7C17 #174C7C #7C174C
tetradic
#4C7C17 #177C7A #47177C #7C171A
square
#4C7C17 #177C7A #47177C #7C171A
split-complementary
#4C7C17 #171A7C #7A177C
monochromatic
#101A05 #2C480D #4C7C17 #6CB021 #8BD934

Accessibility & contrast

On white

5.00
#4C7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#4C7C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7C17
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7C17#FFFFFF#000000##FFFFFF
##4C7C171.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#4D7769
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7c17;
/* rgb */ color: rgb(76, 124, 23);
/* oklch */ color: oklch(53.2% 0.137 132.4);
Tailwind
colors: {
  custom: {
    50: '#83a25d',
    500: '#4c7c17',
    950: '#000000',
  },
}
SCSS
$custom: #4c7c17;
$custom-light: #83a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7c17",
  "rgb": {
    "r": 76,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 88.515,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53204,
    "c": 0.13748,
    "h": 132.4
  },
  "luminance": 0.16014
}

Semantic roles & 50–950 ramp

primary
#4C7C17
secondary
#753EB1
accent
#3CEC90
background
#F8FAF5
surface
#EFF3E9
border
#CACDC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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