#4C7317#4C7317

#4C7317 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.8% C 0.126 H 130.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#4C7317
RGBrgb(76, 115, 23)
HSLhsl(85, 67%, 27%)
HSVhsv(85, 80%, 45%)
CMYKcmyk(33.9%, 0%, 80%, 54.9%)
CIE-LABlab(44.03, -28.63, 43.11)
CIE-LCHlch(44.03, 51.76, 123.59°)
OKLaboklab(50.79% -0.0815 0.0956)
OKLCHoklch(50.79% 0.126 130.4)
XYZxyz(9.2658, 13.8595, 2.9974)
Luminance0.1386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7317 #3E1773
analogous
#736C17 #4C7317 #1E7317
triadic
#4C7317 #174C73 #73174C
tetradic
#4C7317 #17736C #3E1773 #73171E
square
#4C7317 #17736C #3E1773 #73171E
split-complementary
#4C7317 #171E73 #6C1773
monochromatic
#111A05 #2A400D #4C7317 #6EA621 #8FD52F

Accessibility & contrast

On white

5.57
#4C7317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#4C7317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7317
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7317#FFFFFF#000000##FFFFFF
##4C73171.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A02
Deuteranopia (green-blind)
#736720
Tritanopia (blue-blind)
#4E6E62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4c7317;
/* rgb */ color: rgb(76, 115, 23);
/* oklch */ color: oklch(50.8% 0.126 130.4);
Tailwind
colors: {
  custom: {
    50: '#829b5c',
    500: '#4c7317',
    950: '#000000',
  },
}
SCSS
$custom: #4c7317;
$custom-light: #829b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7317",
  "rgb": {
    "r": 76,
    "g": 115,
    "b": 23
  },
  "hsl": {
    "h": 85.435,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50787,
    "c": 0.12563,
    "h": 130.4
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#4C7317
secondary
#6B3DA9
accent
#3EEA87
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7317

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

Preview Lab → · Contrast checker → · Palette generator →

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