#4C7217#4C7217

#4C7217 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.5% C 0.124 H 130.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#4C7217
RGBrgb(76, 114, 23)
HSLhsl(85, 66%, 27%)
HSVhsv(85, 80%, 45%)
CMYKcmyk(33.3%, 0%, 79.8%, 55.3%)
CIE-LABlab(43.70, -28.16, 42.80)
CIE-LCHlch(43.70, 51.23, 123.34°)
OKLaboklab(50.52% -0.0802 0.095)
OKLCHoklch(50.52% 0.124 130.2)
XYZxyz(9.1524, 13.6327, 2.9596)
Luminance0.1363 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7217 #3D1772
analogous
#726B17 #4C7217 #1F7217
triadic
#4C7217 #174C72 #72174C
tetradic
#4C7217 #17726B #3D1772 #72171F
square
#4C7217 #17726B #3D1772 #72171F
split-complementary
#4C7217 #171F72 #6B1772
monochromatic
#111905 #2A3F0D #4C7217 #6EA521 #8FD52E

Accessibility & contrast

On white

5.64
#4C7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4C7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7217
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7217#FFFFFF#000000##FFFFFF
##4C72171.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786902
Deuteranopia (green-blind)
#726620
Tritanopia (blue-blind)
#4E6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4c7217;
/* rgb */ color: rgb(76, 114, 23);
/* oklch */ color: oklch(50.5% 0.124 130.2);
Tailwind
colors: {
  custom: {
    50: '#829b5c',
    500: '#4c7217',
    950: '#000000',
  },
}
SCSS
$custom: #4c7217;
$custom-light: #829b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7217",
  "rgb": {
    "r": 76,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 85.055,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50519,
    "c": 0.12429,
    "h": 130.2
  },
  "luminance": 0.13633
}

Semantic roles & 50–950 ramp

primary
#4C7217
secondary
#6A3DA8
accent
#3EE986
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7217

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

Preview Lab → · Contrast checker → · Palette generator →

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