#4C7B17#4C7B17

#4C7B17 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.9% C 0.136 H 132.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#4C7B17
RGBrgb(76, 123, 23)
HSLhsl(88, 68%, 29%)
HSVhsv(88, 81%, 48%)
CMYKcmyk(38.2%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.66, -32.35, 45.59)
CIE-LCHlch(46.66, 55.90, 125.36°)
OKLaboklab(52.94% -0.0915 0.1008)
OKLCHoklch(52.94% 0.136 132.2)
XYZxyz(10.2180, 15.7638, 3.3148)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7B17 #46177B
analogous
#7B7817 #4C7B17 #1A7B17
triadic
#4C7B17 #174C7B #7B174C
tetradic
#4C7B17 #177B78 #46177B #7B171A
square
#4C7B17 #177B78 #46177B #7B171A
split-complementary
#4C7B17 #171A7B #78177B
monochromatic
#101A05 #2C470D #4C7B17 #6CAF21 #8BD933

Accessibility & contrast

On white

5.06
#4C7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#4C7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7B17
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7B17#FFFFFF#000000##FFFFFF
##4C7B171.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#4D7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7b17;
/* rgb */ color: rgb(76, 123, 23);
/* oklch */ color: oklch(52.9% 0.136 132.2);
Tailwind
colors: {
  custom: {
    50: '#83a15d',
    500: '#4c7b17',
    950: '#000000',
  },
}
SCSS
$custom: #4c7b17;
$custom-light: #83a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7b17",
  "rgb": {
    "r": 76,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 88.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52936,
    "c": 0.13618,
    "h": 132.2
  },
  "luminance": 0.15764
}

Semantic roles & 50–950 ramp

primary
#4C7B17
secondary
#733EB0
accent
#3CEB8F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4C7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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